Skip to content

Commit

Permalink
Merge pull request debauchee#822 from M1cha/kbd-backlight
Browse files Browse the repository at this point in the history
add support for keyboard backlight media keys
  • Loading branch information
shymega authored Aug 4, 2020
2 parents 6b71871 + 7452b64 commit 9a9d221
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/lib/barrier/key_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,8 @@ static const KeyID kKeyAppUser1 = 0xE0B6;
static const KeyID kKeyAppUser2 = 0xE0B7;
static const KeyID kKeyBrightnessDown = 0xE0B8;
static const KeyID kKeyBrightnessUp = 0xE0B9;
static const KeyID kKeyKbdBrightnessDown = 0xE0BA;
static const KeyID kKeyKbdBrightnessUp = 0xE0BB;
static const KeyID kKeyMissionControl = 0xE0C0;
static const KeyID kKeyLaunchpad = 0xE0C1;

Expand Down
2 changes: 1 addition & 1 deletion src/lib/platform/XWindowsUtil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1250,7 +1250,7 @@ XK_uhorn
// map "Internet" keys to KeyIDs
static const KeySym s_map1008FF[] =
{
/* 0x00 */ 0, 0, kKeyBrightnessUp, kKeyBrightnessDown, 0, 0, 0, 0,
/* 0x00 */ 0, 0, kKeyBrightnessUp, kKeyBrightnessDown, 0, kKeyKbdBrightnessUp, kKeyKbdBrightnessDown, 0,
/* 0x08 */ 0, 0, 0, 0, 0, 0, 0, 0,
/* 0x10 */ 0, kKeyAudioDown, kKeyAudioMute, kKeyAudioUp,
/* 0x14 */ kKeyAudioPlay, kKeyAudioStop, kKeyAudioPrev, kKeyAudioNext,
Expand Down

0 comments on commit 9a9d221

Please sign in to comment.