Key scancode list requested
Moderators: winston, another_commander
Key scancode list requested
I have Oolite 1.65 Windows/PC.
I would like a program or table which shows the key scancodes. For example, I would like to change my jump key from "j" to "pagedown" so I don't have to move my fingers off the cursor keys to jump.
Does such a beast exist for Windows?
I would like a program or table which shows the key scancodes. For example, I would like to change my jump key from "j" to "pagedown" so I don't have to move my fingers off the cursor keys to jump.
Does such a beast exist for Windows?
- Eric Walch
- Slightly Grand Rear Admiral
- Posts: 5536
- Joined: Sat Jun 16, 2007 3:48 pm
- Location: Netherlands
Re: Key scancode list requested
It should be in the file "keyconfig.plist" that was placed in a folder "config" in your addOns folder. At least it is o a mac, but I assume also on Windows.bulrush wrote:I have Oolite 1.65 Windows/PC.
I would like a program or table which shows the key scancodes. For example, I would like to change my jump key from "j" to "pagedown" so I don't have to move my fingers off the cursor keys to jump.
Does such a beast exist for Windows?
UPS-Courier & DeepSpacePirates & others at the box and some older versions
-
- Quite Grand Sub-Admiral
- Posts: 6683
- Joined: Wed Feb 28, 2007 7:54 am
-
- Quite Grand Sub-Admiral
- Posts: 6683
- Joined: Wed Feb 28, 2007 7:54 am
Every key on a keyboard has a scancode. This scancode is generated by the hardware and is readable by the software. Isn't Ahruman the author for the Mac version? I thought he was using some type of C for the compiler. If so, that should easily get any scancode for any key on the keyboard. Now whether we (the users) have the value for that scancode is another matter.
I've written programs in DOS to do this (years ago), but have not had a reason to do it in Windows.
I've written programs in DOS to do this (years ago), but have not had a reason to do it in Windows.
-
- Quite Grand Sub-Admiral
- Posts: 6683
- Joined: Wed Feb 28, 2007 7:54 am
Yes, every key has a scancode and yes, we can easily get any scancode for any key on the keyboard. However, Oolite on Windows ignores PageUp, PageDn and a few other keys, so even if you know the scancodes, it won't respond to them.
Anyway, if you must give it a try, scancode for PageUp is 280 and for PageDn is 281.
Anyway, if you must give it a try, scancode for PageUp is 280 and for PageDn is 281.
-
- Quite Grand Sub-Admiral
- Posts: 6683
- Joined: Wed Feb 28, 2007 7:54 am