[Commits] SDL: Fixed handling of the Apple TV remote buttons

libsdl.org revision control commits-owner at libsdl.org
Sat Dec 16 10:36:20 PST 2017


details:   https://hg.libsdl.org/SDL/rev/b71dcf275cd5
changeset: 11779:b71dcf275cd5
user:      Sam Lantinga <slouken at libsdl.org>
date:      Sat Dec 16 10:40:45 2017 -0800
description:
Fixed handling of the Apple TV remote buttons
The menu button on the remote is the back button

diffstat:

 src/joystick/SDL_gamecontrollerdb.h |  1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diffs (11 lines):

diff -r db38a635e2c6 -r b71dcf275cd5 src/joystick/SDL_gamecontrollerdb.h
--- a/src/joystick/SDL_gamecontrollerdb.h	Sat Dec 16 10:40:43 2017 -0800
+++ b/src/joystick/SDL_gamecontrollerdb.h	Sat Dec 16 10:40:45 2017 -0800
@@ -219,6 +219,7 @@
 #if defined(SDL_JOYSTICK_MFI)
     "4d466947616d65706164010000000000,MFi Extended Gamepad,a:b0,b:b1,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,righttrigger:a5,rightx:a3,righty:a4,start:b6,x:b2,y:b3,",
     "4d466947616d65706164020000000000,MFi Gamepad,a:b0,b:b1,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,rightshoulder:b5,start:b6,x:b2,y:b3,",
+    "4d466947616d65706164030000000000,Remote,a:b0,b:b2,leftx:a0,lefty:a1,",
     "05000000de2800000511000001000000,Steam Controller,a:b0,b:b1,back:b6,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,righttrigger:a3,start:b7,x:b2,y:b3,",
 #endif
 #if defined(SDL_JOYSTICK_EMSCRIPTEN)


More information about the commits mailing list