added BACKSLASH as a bindable key on Windows

This commit is contained in:
myT 2017-05-04 18:52:46 +02:00
parent 8abb87e783
commit 0e18c3b645
4 changed files with 8 additions and 0 deletions

View file

@ -44,6 +44,8 @@ chg: remove the byzantine r_mode usage added in 1.47
Windows:
add: new bindable key: BACKSLASH (the key to the right of the left shift button)
fix: the crash handler will reset the system timer resolution
fix: if requesting a resolution too high for the display, the image would be offset vertically

View file

@ -188,6 +188,8 @@ static const keyname_t keynames[] =
{"SEMICOLON", ';'}, // because a raw semicolon separates commands
{"BACKSLASH", K_BACKSLASH},
{NULL,0}
};

View file

@ -159,6 +159,8 @@ typedef enum {
K_WIN,
K_MENU,
K_BACKSLASH,
K_LAST_KEY // this had better be <256!
} keyNum_t;

View file

@ -173,6 +173,8 @@ static int MapKey (int key)
return K_KP_DEL;
case '*':
return K_KP_STAR;
case 0x00:
return K_BACKSLASH;
default:
return result;
}