diff options
author | hondres <liu.gam3@gmail.com> | 2016-01-24 05:11:59 +0100 |
---|---|---|
committer | hondres <liu.gam3@gmail.com> | 2016-01-24 05:29:09 +0100 |
commit | e7c920fdbabd65a86864ec9610f895bee82f05ba (patch) | |
tree | d97aa6da8b4ff05a1164d0bdeadff4c83b3be1cd /main/input_default.h | |
parent | 6c27df8df609337867c108c5adb66174393e190b (diff) | |
download | redot-engine-e7c920fdbabd65a86864ec9610f895bee82f05ba.tar.gz |
support gamepad remapping on android
Diffstat (limited to 'main/input_default.h')
-rw-r--r-- | main/input_default.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/main/input_default.h b/main/input_default.h index a75865e0cb..a417713a82 100644 --- a/main/input_default.h +++ b/main/input_default.h @@ -36,7 +36,7 @@ class InputDefault : public Input { struct Joystick { StringName name; StringName uid; - bool last_buttons[JOY_BUTTON_MAX + 2]; //html5 needs support for 18 buttons to map some devices correctly + bool last_buttons[JOY_BUTTON_MAX + 19]; //apparently SDL specifies 35 possible buttons on android float last_axis[JOY_AXIS_MAX]; float filter; int last_hat; @@ -50,7 +50,7 @@ class InputDefault : public Input { last_axis[i] = 0.0f; } - for (int i = 0; i < JOY_BUTTON_MAX + 2; i++) { + for (int i = 0; i < JOY_BUTTON_MAX + 19; i++) { last_buttons[i] = false; } |