On Sat, Dec 13, 2008 at 11:10 PM, Terry Duell <[email protected]> wrote:
> Hullo Dick,

> I have been tapping away for quite a while with no key repeat problems or
> missed chars, so it looks like it may have fixed the problem.
> I would think it is OK to add the patch.

Nice, good to hear. I'll add the patch to the repository.

> I have discovered another keyboard problem.
> Using the standard keyboard available for PC/Linux boxes these days, the
> shifted chars on the @/2 and "/' are swapped, which is correctly emulating
> the RPC keyboard.

It's not really a bug. RISC OS is standard configured for UK keyboards
(the keys you mentioned are swapped and there are some other small
differences) and I guess, you're using an US keyboard so you have to
configure the keyboard to USA in RISC OS. If you use RISC OS 4 you can
do this via the configure in !Boot. If you use RISC OS 3.6/7 then you
have to load an USA keyboard module. I can send it to you if you need
it.

Unfortunately configuring an USA keyboard in RISC OS creates a new
problem. The backslash key won't work any more because the emulator
sends the PS2 scancode for the UK keyboard to RISC OS which is not the
same as the backslash scancode for an US keyboard so the key stops
working. I guess that people who work with AZERTY or QWERTZ keyboards
also have problems.

Quick work around for this. Edit keyboard.c and change the following:
{KEY_BACKSLASH,0x61} to {KEY_BACKSLASH2,0x61}
{KEY_BACKSLASH2,0x5D} to {KEY_BACKSLASH,0x5D}

To solve this problem we have to create a key mapping system or find a
way to read the keys from the host system more directly bypassing the
allegro library.

Greetings,
Dick

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

Reply via email to