Fix improper registration of keys from keypad, correct spacing
This commit is contained in:
@@ -51,6 +51,18 @@ static RageKeySym XSymToKeySym( int key )
|
|||||||
|
|
||||||
switch( key )
|
switch( key )
|
||||||
{
|
{
|
||||||
|
/* These are needed because of the way X registers
|
||||||
|
the keypad. */
|
||||||
|
case XK_KP_Insert: return KEY_KP_C0;
|
||||||
|
case XK_KP_End: return KEY_KP_C1;
|
||||||
|
case XK_KP_Down: return KEY_KP_C2;
|
||||||
|
case XK_KP_Page_Down: return KEY_KP_C3;
|
||||||
|
case XK_KP_Left: return KEY_KP_C4;
|
||||||
|
case XK_KP_Begin: return KEY_KP_C5;
|
||||||
|
case XK_KP_Right: return KEY_KP_C6;
|
||||||
|
case XK_KP_Home: return KEY_KP_C7;
|
||||||
|
case XK_KP_Up: return KEY_KP_C8;
|
||||||
|
case XK_KP_Page_Up: return KEY_KP_C9;
|
||||||
case XK_KP_Decimal: return KEY_KP_PERIOD;
|
case XK_KP_Decimal: return KEY_KP_PERIOD;
|
||||||
case XK_KP_Divide: return KEY_KP_SLASH;
|
case XK_KP_Divide: return KEY_KP_SLASH;
|
||||||
case XK_KP_Multiply: return KEY_KP_ASTERISK;
|
case XK_KP_Multiply: return KEY_KP_ASTERISK;
|
||||||
|
|||||||
Reference in New Issue
Block a user