On Sun, Dec 7, 2008 at 11:14 PM, Tom Walker <[EMAIL PROTECTED]> wrote:
> Very quick guess as to the problem - try moving the call to pollkeyboard(). 
> At the minute it's in execrpcemu, which means it is called _very_ often, 
> especially if the recompiler is used. It may work better if it's moved to 
> genirqtimer() in iomd.c, probably if it's called alongside cmostick() (which 
> would give a 100hz poll - probably still a little quick, but better than the 
> >5000hz poll it currently gets).

Thanks for the tip. Could this also explain why my added code which
handles the Pause/Break key doesn't work with the recompiler. I added
some code to handle the Pause key in keyboard.c but I had a problem
that the Pause key is a switch key for the allegro lib which means
that it doesn't report when the key is released and RISC OS only
reacts on this key when it's switched on. So I manually set this key
to off when it's is pressed. Attached to this mail is a patch of
keyboard.c.

Dick

Attachment: keyboard_pauskey.patch
Description: Binary data

_______________________________________________
Rpcemu mailing list
[email protected]
http://www.riscos.info/cgi-bin/mailman/listinfo/rpcemu

Reply via email to