mirror of https://github.com/encounter/SDL.git
Added support for the Backbone One guide button
The guide button is activated on a long press (> 400ms)
This commit is contained in:
parent
95f9c3cf0f
commit
a3c1ca1fa1
|
@ -335,11 +335,7 @@ IOS_AddMFIJoystickDevice(SDL_JoystickDeviceItem *device, GCController *controlle
|
||||||
}
|
}
|
||||||
|
|
||||||
if (SDL_strcmp(name, "Backbone One") == 0) {
|
if (SDL_strcmp(name, "Backbone One") == 0) {
|
||||||
/* The Backbone app uses the guide and share buttons */
|
/* The Backbone app uses share button */
|
||||||
if ((device->button_mask & (1 << SDL_CONTROLLER_BUTTON_GUIDE)) != 0) {
|
|
||||||
device->button_mask &= ~(1 << SDL_CONTROLLER_BUTTON_GUIDE);
|
|
||||||
--nbuttons;
|
|
||||||
}
|
|
||||||
if ((device->button_mask & (1 << SDL_CONTROLLER_BUTTON_MISC1)) != 0) {
|
if ((device->button_mask & (1 << SDL_CONTROLLER_BUTTON_MISC1)) != 0) {
|
||||||
device->button_mask &= ~(1 << SDL_CONTROLLER_BUTTON_MISC1);
|
device->button_mask &= ~(1 << SDL_CONTROLLER_BUTTON_MISC1);
|
||||||
--nbuttons;
|
--nbuttons;
|
||||||
|
|
Loading…
Reference in New Issue