Skip to content

Commit

Permalink
Added some extra keys
Browse files Browse the repository at this point in the history
  • Loading branch information
Azarattum authored and houmain committed Jan 20, 2021
1 parent 69de0ef commit 3168d85
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/config/Key.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,12 @@ std::string_view get_key_name(const Key& key) {
case Key::PageDown: return "PageDown";
case Key::Insert: return "Insert";
case Key::Delete: return "Delete";
case Key::Settings: return "Settings";
case Key::BrightnessDown: return "BrightnessDown";
case Key::BrightnessUp: return "BrightnessUp";
case Key::DisplayToggleIntExt:return "DisplayToggleIntExt";
case Key::Prog3: return "Prog3";
case Key::WLAN: return "WLAN";
case Key::AudioVolumeMute: return "AudioVolumeMute";
case Key::AudioVolumeDown: return "AudioVolumeDown";
case Key::AudioVolumeUp: return "AudioVolumeUp";
Expand Down
12 changes: 12 additions & 0 deletions src/config/Key.h
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ enum class Key : KeyCode {
AudioVolumeUp = 0x0073,
Power = 0x0074,
NumpadEqual = 0x0075,
Settings = 0x0076,
Pause = 0x0077,
NumpadComma = 0x0079,
Lang1 = 0x007A,
Expand Down Expand Up @@ -162,7 +163,12 @@ enum class Key : KeyCode {
F22 = 0x00C0,
F23 = 0x00C1,
F24 = 0x00C2,
Prog3 = 0x00CA,
BrowserSearch = 0x00D9,
BrightnessDown = 0x00E0,
BrightnessUp = 0x00E1,
DisplayToggleIntExt= 0x00E3,
WLAN = 0x00EE,
//Fn = 0x01D0,
#endif // defined(__linux__)

Expand Down Expand Up @@ -190,6 +196,10 @@ enum class Key : KeyCode {
NonConvert = 0x007B,
IntlYen = 0x007D,
NumpadComma = 0x007E,
DisplayToggleIntExt= 0xE002,
WLAN = 0xE006,
BrightnessUp = 0xE008,
BrightnessDown = 0xE009,
MediaTrackPrevious = 0xE010,
MediaTrackNext = 0xE019,
NumpadEnter = 0xE01C,
Expand All @@ -201,6 +211,7 @@ enum class Key : KeyCode {
AudioVolumeDown = 0xE02E,
AudioVolumeUp = 0xE030,
//BrowserHome = 0xE032,
Prog3 = 0xE033,
NumpadDivide = 0xE035,
PrintScreen = 0xE037,
AltRight = 0xE038,
Expand All @@ -211,6 +222,7 @@ enum class Key : KeyCode {
PageUp = 0xE049,
ArrowLeft = 0xE04B,
ArrowRight = 0xE04D,
Settings = 0xE04E,
End = 0xE04F,
ArrowDown = 0xE050,
PageDown = 0xE051,
Expand Down

0 comments on commit 3168d85

Please sign in to comment.