Skip to content

Commit 37483da

Browse files
authored
Merge pull request #27 from pfeigl/feature/support-numpad-as
Add key event support for VK_ADD, VK_SUBTRACT, VK_NUMPAD0
2 parents 9eb5ba6 + 0e4846f commit 37483da

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

engine/system/win/sys_main.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ static const byte sys_keyRemap[] = {
244244
0, // 5D VK_APPS
245245
0, // 5E -
246246
0, // 5F VK_SLEEP
247-
0, // 60 VK_NUMPAD0
247+
'0', // 60 VK_NUMPAD0
248248
0, // 61 VK_NUMPAD1
249249
0, // 62 VK_NUMPAD2
250250
0, // 63 VK_NUMPAD3
@@ -255,9 +255,9 @@ static const byte sys_keyRemap[] = {
255255
0, // 68 VK_NUMPAD8
256256
0, // 69 VK_NUMPAD9
257257
0, // 6A VK_MULTIPLY
258-
0, // 6B VK_ADD
258+
'+', // 6B VK_ADD
259259
0, // 6C VK_SEPARATOR
260-
0, // 6D VK_SUBTRACT
260+
'-', // 6D VK_SUBTRACT
261261
0, // 6E VK_DECIMAL
262262
0, // 6F VK_DIVIDE
263263
KEY_F1, // 70 VK_F1

0 commit comments

Comments
 (0)