Skip to content

Commit

Permalink
Add keymap support for the power button
Browse files Browse the repository at this point in the history
  • Loading branch information
John Rennie authored and amejia1 committed Jun 12, 2012
1 parent 4bb13e1 commit df3253c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions xbmc/input/XBMC_keytable.cpp
Expand Up @@ -222,6 +222,7 @@ static const XBMCKEYTABLE XBMCKeyTable[] =
, { XBMCK_PAUSE, 0, 0, XBMCVK_PAUSE, "pause" }
, { XBMCK_SCROLLOCK, 0, 0, XBMCVK_SCROLLLOCK, "scrolllock" }
, { XBMCK_PRINT, 0, 0, XBMCVK_PRINTSCREEN, "printscreen" }
, { XBMCK_POWER, 0, 0, XBMCVK_POWER, "power" }
};

static int XBMCKeyTableSize = sizeof(XBMCKeyTable)/sizeof(XBMCKEYTABLE);
Expand Down
1 change: 1 addition & 0 deletions xbmc/input/XBMC_vkeys.h
Expand Up @@ -204,6 +204,7 @@ typedef enum {
XBMCVK_PRINTSCREEN = 0xDB,
XBMCVK_SCROLLLOCK = 0xDC,
XBMCVK_PAUSE = 0XDD,
XBMCVK_POWER = 0XDE,

XBMCVK_LAST = 0xFF
} XBMCVKey;
Expand Down
1 change: 1 addition & 0 deletions xbmc/windowing/WinEventsSDL.cpp
Expand Up @@ -62,6 +62,7 @@ static uint16_t SymMappingsEvdev[][2] =
{ { 121, XBMCK_VOLUME_MUTE } // Volume mute
, { 122, XBMCK_VOLUME_DOWN } // Volume down
, { 123, XBMCK_VOLUME_UP } // Volume up
, { 124, XBMCK_POWER } // Power button on PC case
, { 127, XBMCK_SPACE } // Pause
, { 135, XBMCK_MENU } // Right click
, { 136, XBMCK_MEDIA_STOP } // Stop
Expand Down

0 comments on commit df3253c

Please sign in to comment.