View Single Post
Old June 4, 2012, 08:30   #12
PowerWyrm's Avatar
Join Date: Apr 2008
Posts: 2,403
PowerWyrm is on a distinguished road
Originally Posted by PowerWyrm View Post
Ah ok... that explains the behavior of keypresses on SDL and GCU clients, so the same behavior should indeed be applied with Windows. NUMLOCK off should be the default and shift-keypad with numlock off should work as expected.
So the correct behavior should be:
- press keypad with numlock off: virtual key (left, right, down, up, home, end, pgup, pgdn)
- press keypad with numlock on: numeric key (1, 2, 3, 4, 6, 7, 8, 9)
- press shift+keypad with numlock off: shift+virtual key (shift+left, shift+right, shift+down, shift+up, shift+home, shift+end, shift+pgup, shift+pgdn)
- press shift+keypad with numlock on: virtual key (left, right, down, up, home, end, pgup, pgdn)

The game should then ensure than numlock is off and that the virtual keys are mapped to the numeric keys in pref.prf (which should be the case).
PWMAngband variant maintainer - check (or to learn more about this new variant!
PowerWyrm is offline   Reply With Quote