1
0
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:
bruvzg
2022-01-10 13:43:44 +02:00
parent 5f7bbf4d33
commit 61ea8f8337
3 changed files with 8 additions and 4 deletions

View File

@@ -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 {