Skip to content

Commit

Permalink
Changed UINT to WORD (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
franklin654 authored Jan 6, 2024
1 parent 42bf648 commit 04aada1
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 27 deletions.
52 changes: 26 additions & 26 deletions src/settings_key_variables.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,32 +31,32 @@ std::map<Thumbstick, WORD> THUMBSTICK_KEYS = {
/**
* A std::map to map the virtual key codes to corresponding key names
*/
const std::map<UINT, const char *> vk_maps = {{VK_LBUTTON, "LMButton"},
{VK_RBUTTON, "RMButton"},
{VK_MBUTTON, "MMButton"},
{VK_BACK, "BACKSPACE"},
{VK_TAB, "TAB"},
{VK_RETURN, "ENTER"},
{VK_SHIFT, "SHIFT"},
{VK_CONTROL, "CTRL"},
{VK_CAPITAL, "CAPITAL"},
{VK_ESCAPE, "ESCAPE"},
{VK_SPACE, "SPACE"},
{VK_PRIOR, "PageUP"},
{VK_NEXT, "PageDOWN"},
{VK_END, "END"},
{VK_HOME, "HOME"},
{VK_LEFT, "LEFT"},
{VK_UP, "UP"},
{VK_RIGHT, "RIGHT"},
{VK_DOWN, "DOWN"},
{VK_INSERT, "INS"},
{VK_DELETE, "DEL"},
{VK_OEM_PERIOD, "."},
{VK_OEM_COMMA, ","},
{VK_OEM_MINUS, "-"},
{VK_OEM_PLUS, "+"},
{VK_MENU, "MENU"}};
std::map<WORD, const char *> vk_maps = {{VK_LBUTTON, "LMButton"},
{VK_RBUTTON, "RMButton"},
{VK_MBUTTON, "MMButton"},
{VK_BACK, "BACKSPACE"},
{VK_TAB, "TAB"},
{VK_RETURN, "ENTER"},
{VK_SHIFT, "SHIFT"},
{VK_CONTROL, "CTRL"},
{VK_CAPITAL, "CAPITAL"},
{VK_ESCAPE, "ESCAPE"},
{VK_SPACE, "SPACE"},
{VK_PRIOR, "PageUP"},
{VK_NEXT, "PageDOWN"},
{VK_END, "END"},
{VK_HOME, "HOME"},
{VK_LEFT, "LEFT"},
{VK_UP, "UP"},
{VK_RIGHT, "RIGHT"},
{VK_DOWN, "DOWN"},
{VK_INSERT, "INS"},
{VK_DELETE, "DEL"},
{VK_OEM_PERIOD, "."},
{VK_OEM_COMMA, ","},
{VK_OEM_MINUS, "-"},
{VK_OEM_PLUS, "+"},
{VK_MENU, "MENU"}};

/**
* A list containing the Mouse Buttons.
Expand Down
2 changes: 1 addition & 1 deletion src/settings_key_variables.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ enum Thumbstick
};

extern std::map<Thumbstick, WORD> THUMBSTICK_KEYS;
extern std::map<UINT, const char *> vk_maps;
extern std::map<WORD, const char *> vk_maps;

extern const QList<UINT> MOUSE_BUTTONS;

Expand Down

0 comments on commit 04aada1

Please sign in to comment.