You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Add joystick button index boundary check. Increase max. button number to 128 (max. buttons supported by DirectInput).
This commit is contained in:
@@ -83,7 +83,7 @@ enum class JoyButton {
|
||||
PADDLE4 = 19,
|
||||
TOUCHPAD = 20,
|
||||
SDL_MAX = 21,
|
||||
MAX = 36, // Android supports up to 36 buttons.
|
||||
MAX = 128, // Android supports up to 36 buttons. DirectInput supports up to 128 buttons.
|
||||
};
|
||||
|
||||
enum class MIDIMessage {
|
||||
|
||||
Reference in New Issue
Block a user