mirror of
https://github.com/SFML/SFML.git
synced 2024-12-01 15:51:04 +08:00
Make getKeyFromEvent more robust for Decimal (Numpad)
This commit is contained in:
parent
1754f24609
commit
08d1095314
@ -75,6 +75,7 @@ Keyboard::Key keySymToKey(KeySym symbol)
|
|||||||
case XK_KP_Subtract: return Keyboard::Subtract;
|
case XK_KP_Subtract: return Keyboard::Subtract;
|
||||||
case XK_KP_Multiply: return Keyboard::Multiply;
|
case XK_KP_Multiply: return Keyboard::Multiply;
|
||||||
case XK_KP_Divide: return Keyboard::Divide;
|
case XK_KP_Divide: return Keyboard::Divide;
|
||||||
|
case XK_KP_Delete: return Keyboard::Period;
|
||||||
case XK_Pause: return Keyboard::Pause;
|
case XK_Pause: return Keyboard::Pause;
|
||||||
case XK_F1: return Keyboard::F1;
|
case XK_F1: return Keyboard::F1;
|
||||||
case XK_F2: return Keyboard::F2;
|
case XK_F2: return Keyboard::F2;
|
||||||
|
Loading…
Reference in New Issue
Block a user