mirror of https://github.com/mgba-emu/mgba.git
SDL: Fix boundary conditions for joystick adjustments
This commit is contained in:
parent
104a80422c
commit
d091de4057
1
CHANGES
1
CHANGES
|
@ -39,6 +39,7 @@ Bugfixes:
|
||||||
- VFS: Fix resource leaks if some allocations fail
|
- VFS: Fix resource leaks if some allocations fail
|
||||||
- Debugger: Fix boundary conditions in tab completion
|
- Debugger: Fix boundary conditions in tab completion
|
||||||
- Video: Fix an issue with very long filenames
|
- Video: Fix an issue with very long filenames
|
||||||
|
- SDL: Fix boundary conditions for joystick adjustments
|
||||||
Misc:
|
Misc:
|
||||||
- Qt: Show multiplayer numbers in window title
|
- Qt: Show multiplayer numbers in window title
|
||||||
- Qt: Handle saving input settings better
|
- Qt: Handle saving input settings better
|
||||||
|
|
|
@ -304,7 +304,7 @@ void GBASDLPlayerSaveConfig(const struct GBASDLPlayer* context, struct Configura
|
||||||
}
|
}
|
||||||
|
|
||||||
void GBASDLPlayerChangeJoystick(struct GBASDLEvents* events, struct GBASDLPlayer* player, size_t index) {
|
void GBASDLPlayerChangeJoystick(struct GBASDLEvents* events, struct GBASDLPlayer* player, size_t index) {
|
||||||
if (player->playerId > MAX_PLAYERS || index >= events->nJoysticks) {
|
if (player->playerId >= MAX_PLAYERS || index >= events->nJoysticks) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
events->joysticksClaimed[player->playerId] = index;
|
events->joysticksClaimed[player->playerId] = index;
|
||||||
|
|
Loading…
Reference in New Issue