mirror of
https://bitbucket.org/CPMADevs/cnq3
synced 2024-11-10 06:31:48 +00:00
added BACKSLASH as a bindable key on Windows
This commit is contained in:
parent
8abb87e783
commit
0e18c3b645
4 changed files with 8 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -188,6 +188,8 @@ static const keyname_t keynames[] =
|
|||
|
||||
{"SEMICOLON", ';'}, // because a raw semicolon separates commands
|
||||
|
||||
{"BACKSLASH", K_BACKSLASH},
|
||||
|
||||
{NULL,0}
|
||||
};
|
||||
|
||||
|
|
|
@ -159,6 +159,8 @@ typedef enum {
|
|||
K_WIN,
|
||||
K_MENU,
|
||||
|
||||
K_BACKSLASH,
|
||||
|
||||
K_LAST_KEY // this had better be <256!
|
||||
} keyNum_t;
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue