Skip to content

Commit

Permalink
Add support for Caps Lock
Browse files Browse the repository at this point in the history
  • Loading branch information
Hary309 committed Mar 24, 2021
1 parent 6b321d1 commit 343d23d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions include/Hry/System/Keyboard.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ struct Keyboard
BrowserSearch,
BrowserFavorites,
BrowserHome,
Capital,

KeyCount
};
Expand Down
1 change: 1 addition & 0 deletions src/Events/Proxies/WndProcEventProxy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ Keyboard::Key vkKeyCodeToEnum(WPARAM key, LPARAM flags) noexcept
case '7': return Key::Num7;
case '8': return Key::Num8;
case '9': return Key::Num9;
case VK_CAPITAL: return Key::Capital;
case VK_LWIN: return Key::LSystem;
case VK_RWIN: return Key::RSystem;
case VK_APPS: return Key::Menu;
Expand Down
1 change: 1 addition & 0 deletions src/KeyBinding/BindableKeys.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ static const auto BindableKeys = std::array{
BindableKey{ Keyboard::Key::BrowserSearch, "Search" },
BindableKey{ Keyboard::Key::BrowserFavorites, "Favorites" },
BindableKey{ Keyboard::Key::BrowserHome, "Home" },
BindableKey{ Keyboard::Key::Capital, "Caps Lock" },

// Mouse
BindableKey{ Mouse::Button::Left, "Left Mouse Button" },
Expand Down

0 comments on commit 343d23d

Please sign in to comment.