How can I echo key codes to remap keyboard?
Dan Browne (2610) 5 posts |
I am a newcomer to RISC OS, so please bear with me (although was an expert on the BBC Micro in the 1980s, so not a complete newbie!). I am running RISC OS on my Raspberry Pi and wish to use KeyRemapper to remap multimedia keys on my Logitech K400r keyboard to useful RISC OS functions. Keymapper looks like the tool for the task, but how can I find out the key codes for the keys I wish to map? In X, I would run xev which echoes keycodes to the screen. Is there a RISC OS equivalent? If such a tool does not exist, I’d be open for writing one in BBC BASIC, but would be grateful for any tips. I haven’t programmed in BASIC for nearly 30 years, but I’m sure it is like riding a bike… |
Dan Browne (2610) 5 posts |
Update: I found some C code here, which looks like it might do the trick, but I’d much rather implement this in BASIC than have to learn how to run compilers in RISC OS! |
Dan Browne (2610) 5 posts |
I found this list of key codes: https://www.riscosopen.org/wiki/documentation/show/Low-Level%20Internal%20Key%20Numbers The multimedia keys which I wish to remap are not there. I also read here that support for multimedia keys is not yet in RISC OS 5 (which RISC OS Pi is based on?). http://newsgroups.derkeiler.com/Archive/Comp/comp.sys.acorn.programmer/2014-04/msg00007.html So is the answer going to be that I won’t find the key codes I’m looking for – because multimedia keys are not seen by RISC OS at all yet?! |
Dan Browne (2610) 5 posts |
I found an ancient driver which claims to support multimedia keys in RISC OS. Using this OS really does feel like archaeology! (which is not intended as a bad pun…) http://www.stdevel.co.uk/software.html I’ll see if I can get it to work and report back…. |
Andrew Conroy (370) 740 posts |
Would !HID do what you want? |
Dan Browne (2610) 5 posts |
Thank you Andrew. HID looks like it would be perfect if I could just get it to work! It detects the multimedia keys I am trying to map, but the main functionality of the programme appears either buggy or incompatible with my version of RISC OS (latest RPi nightly). I see HIP is in active development so I’ll monitor its progress. Potentially it could do just what I need if the bugs / compatibility issues are ironed out. |