Speed Keybinding
Brought to you by:
asparker
It'd be great to have a way to set speeds via a keybinding. I looked around but didn't see one. If Xpert doesn't already have one to rip off, I'd suggest:
Keypad / for speed 0
Keypad * for speed walk
Keypad - for speed run
Ctrl + Keypad "+" for increase speed by an arbitrary amount (1 MP?)
Ctrl + Keypad "-" for decrease speed by an arbitrary amount
Shift + Keypad * for half speed backwards
Shift + keypad - for full speed backwards
Logged In: YES
user_id=1068642
Originator: NO
My current research indicates that the keypad / * - buttons are simply not bindable in Java. I'm investigating to find whether or not that's truly the case but it'll take some time to get to the bottom of it, so it's definitely 1.5 if it can happen at all.
Logged In: YES
user_id=1759452
Originator: NO
You can bind the keypad buttons just fine. The problem is that Swing (at least as of Java 1.5) doesn't make it particularly easy to distinguish numeric pad events in InputMaps. I have a big hack in ThudActions.java for the number keys which can probably be extended just fine to the other keypad buttons.