Allow using the hash key in hotkeys (SDL)
This commit is contained in:
@@ -102,6 +102,7 @@ enum WindowKeyCodes {
|
||||
WKC_COMMA = 151, ///< , Comma
|
||||
WKC_PERIOD = 152, ///< . Period
|
||||
WKC_MINUS = 153, ///< - Minus
|
||||
WKC_HASH = 154, ///< # Hash
|
||||
};
|
||||
|
||||
/** A single sprite of a list of animated cursors */
|
||||
|
@@ -86,6 +86,7 @@ static const KeycodeNames _keycode_to_name[] = {
|
||||
{".", WKC_PERIOD}, /* deprecated, use PERIOD */
|
||||
{"MINUS", WKC_MINUS},
|
||||
{"-", WKC_MINUS}, /* deprecated, use MINUS */
|
||||
{"HASH", WKC_HASH},
|
||||
{"PAGE_UP", WKC_PAGEUP},
|
||||
{"PAGE_DOWN", WKC_PAGEDOWN},
|
||||
};
|
||||
|
@@ -701,7 +701,8 @@ static const VkMapping _vk_mapping[] = {
|
||||
AS(SDLK_QUOTE, WKC_SINGLEQUOTE),
|
||||
AS(SDLK_COMMA, WKC_COMMA),
|
||||
AS(SDLK_MINUS, WKC_MINUS),
|
||||
AS(SDLK_PERIOD, WKC_PERIOD)
|
||||
AS(SDLK_PERIOD, WKC_PERIOD),
|
||||
AS(SDLK_HASH, WKC_HASH),
|
||||
};
|
||||
|
||||
static uint ConvertSdlKeyIntoMy(SDL_Keysym *sym, WChar *character)
|
||||
|
@@ -470,7 +470,8 @@ static const VkMapping _vk_mapping[] = {
|
||||
AS(SDLK_QUOTE, WKC_SINGLEQUOTE),
|
||||
AS(SDLK_COMMA, WKC_COMMA),
|
||||
AS(SDLK_MINUS, WKC_MINUS),
|
||||
AS(SDLK_PERIOD, WKC_PERIOD)
|
||||
AS(SDLK_PERIOD, WKC_PERIOD),
|
||||
AS(SDLK_HASH, WKC_HASH),
|
||||
};
|
||||
|
||||
static uint ConvertSdlKeyIntoMy(SDL_keysym *sym, WChar *character)
|
||||
|
Reference in New Issue
Block a user