Skip to content
This repository
Browse code

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 authored
4  xbmc/guilib/Key.h
@@ -30,6 +30,10 @@
30 30
 
31 31
 #include "utils/StdString.h"
32 32
 
  33
+// Reserved 0 - 255
  34
+//  XBIRRemote.h
  35
+//  XINPUT_IR_REMOTE-*
  36
+
33 37
 // Analogue - don't change order
34 38
 #define KEY_BUTTON_A                        256
35 39
 #define KEY_BUTTON_B                        257
6  xbmc/input/XBIRRemote.h
@@ -88,11 +88,15 @@
88 88
 #define XINPUT_IR_REMOTE_YELLOW         253
89 89
 #define XINPUT_IR_REMOTE_BLUE           254
90 90
 #define XINPUT_IR_REMOTE_PLAYLIST       255
91  
-#define XINPUT_IR_REMOTE_GUIDE          256
  91
+#define XINPUT_IR_REMOTE_GUIDE          50
92 92
 
93 93
 #define XINPUT_IR_REMOTE_LIVE_RADIO     248
94 94
 #define XINPUT_IR_REMOTE_EPG_SEARCH     246
95 95
 
  96
+// Reserved 256 -> ...
  97
+// Key.h
  98
+// KEY_BUTTON_*
  99
+
96 100
 typedef struct _XINPUT_IR_REMOTE
97 101
 {
98 102
   BYTE wButtons;

0 notes on commit 66e86e6

Please sign in to comment.
Something went wrong with that request. Please try again.