Please add Numpad support
Monkey Forums/Monkey Bug Reports/Please add Numpad support
| ||
Muddy_shoes says they can be supported in GLFW by adding this to the switch statement in the TransKey function in mojo.glfw.cpp:case GLFW_KEY_KP_0: return VKEY_NUM0; case GLFW_KEY_KP_1: return VKEY_NUM1; case GLFW_KEY_KP_2: return VKEY_NUM2; case GLFW_KEY_KP_3: return VKEY_NUM3; case GLFW_KEY_KP_4: return VKEY_NUM4; case GLFW_KEY_KP_5: return VKEY_NUM5; case GLFW_KEY_KP_6: return VKEY_NUM6; case GLFW_KEY_KP_7: return VKEY_NUM7; case GLFW_KEY_KP_8: return VKEY_NUM8; case GLFW_KEY_KP_9: return VKEY_NUM9; case GLFW_KEY_KP_DIVIDE: return VKEY_NUMDIVIDE; case GLFW_KEY_KP_MULTIPLY: return VKEY_NUMMULTIPLY; case GLFW_KEY_KP_SUBTRACT: return VKEY_NUMSUBTRACT; case GLFW_KEY_KP_ADD: return VKEY_NUMADD; case GLFW_KEY_KP_DECIMAL: return VKEY_NUMDECIMAL; Also in Flash the keycodes can be ready as straight ints: Numpad 0 = 96 Numpad 1 = 97 Numpad 2 = 98 Numpad 3 = 99 Numpad 4 = 100 Numpad 5 = 101 Numpad 6 = 102 Numpad 7 = 103 Numpad 8 = 104 Numpad 9 = 105 I just made a math game where numpad was critical and also am working on a Dungeon Master type game that would be great with numpad keys for controls. Pretty Please? Thanks! |
| ||
I just wanted to say I have just bumped into this myself and its still an issue. |
| ||
I also wanted to enable the X-Arcade controller for my games. The X-Arcade is configured for MAME-settings, which is Numpad 2-4-6-8 for directions, and it of course doesn't work. I'm on HTML5. Please add these keycodes. |
| ||
I have not tried it myself, but pretty sure this got added in v76b. ***** v76b ***** Added keypad support to glfw and KEY_NUM0 etc to keycodes.monkey and docs. See this thread here for the version changelog - second entry under v76b is the above. |
| ||
It did :) |