Fixed uninitialized variable
This commit is contained in:
1 parent
119e02f314
commit
b7d7e54895
1 file changed
+1
-1
@@ -554,7 +554,7 @@ static BOOL IOS_AddMFIJoystickDevice(SDL_JoystickDeviceItem *device, GCControlle
|
|||||||
if (controller.extendedGamepad) {
|
if (controller.extendedGamepad) {
|
||||||
GCExtendedGamepad *gamepad = controller.extendedGamepad;
|
GCExtendedGamepad *gamepad = controller.extendedGamepad;
|
||||||
int nbuttons = 0;
|
int nbuttons = 0;
|
||||||
BOOL has_direct_menu;
|
BOOL has_direct_menu = FALSE;
|
||||||
|
|
||||||
/* These buttons are part of the original MFi spec */
|
/* These buttons are part of the original MFi spec */
|
||||||
device->button_mask |= (1 << SDL_GAMEPAD_BUTTON_SOUTH);
|
device->button_mask |= (1 << SDL_GAMEPAD_BUTTON_SOUTH);
|
||||||
|
|||||||
Reference in new issue
Block a user