Saturday, 21 October 2017

Re: [Rpcemu] RPCEmu pre release test version 0.8.99

On Fri, Oct 20, 2017 at 11:56:56PM +0100, Chris Gransden wrote:
> Due to there being a port of Qt5 available for RISC OS RPCEmu now runs on
> RISC OS. :-) I've only tried RISC OS 5 so far but everything seems to work
> OK apart from keyboard input, sound and networking. I think this is a
> limitation of the RISC OS port of Qt5.

It was also straightforward to compile for Mac, and it boots and sound
works. Keyboard doesn't work, because macOS doesn't provide
QKeyEvent::nativeScanCode()

I think it might be possible to cobble up something from guesswork based on
other fields provided by QKeyEvent:: but it won't be perfect.
In particular it can't distinguish left/right Shift, and caps-lock-off
doesn't generate events. I think the numeric keypad might be unavailable
too. It also may not play nicely with different Mac-side keyboard layouts.

My guess would be RISC OS Qt would need something similar - either an
implementation of nativeScanCode() and a keyboard_riscos.c translation to
PS/2 codes, or a fudge as above.

Theo

_______________________________________________
Rpcemu mailing list
Rpcemu@riscos.info
http://www.riscos.info/cgi-bin/mailman/listinfo/rpcemu

No comments:

Post a Comment