Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

keymap: fix sixaxis gamepad keymapping

Values below starting at 256 are reserved for KEY_BUTTON_*,
use some other unused key id for the GUIDE button. This button
is only virtual since it's mapped from a CEC event
  • Loading branch information...
commit 66e86e659637e18a867b8d1ba020a89592eef560 1 parent c275bf3
Joakim Plate elupus authored
Showing with 9 additions and 1 deletion.
  1. +4 −0 xbmc/guilib/Key.h
  2. +5 −1 xbmc/input/XBIRRemote.h
4 xbmc/guilib/Key.h
View
@@ -30,6 +30,10 @@
#include "utils/StdString.h"
+// Reserved 0 - 255
+// XBIRRemote.h
+// XINPUT_IR_REMOTE-*
+
// Analogue - don't change order
#define KEY_BUTTON_A 256
#define KEY_BUTTON_B 257
6 xbmc/input/XBIRRemote.h
View
@@ -88,11 +88,15 @@
#define XINPUT_IR_REMOTE_YELLOW 253
#define XINPUT_IR_REMOTE_BLUE 254
#define XINPUT_IR_REMOTE_PLAYLIST 255
-#define XINPUT_IR_REMOTE_GUIDE 256
+#define XINPUT_IR_REMOTE_GUIDE 50
#define XINPUT_IR_REMOTE_LIVE_RADIO 248
#define XINPUT_IR_REMOTE_EPG_SEARCH 246
+// Reserved 256 -> ...
+// Key.h
+// KEY_BUTTON_*
+
typedef struct _XINPUT_IR_REMOTE
{
BYTE wButtons;
Please sign in to comment.
Something went wrong with that request. Please try again.