diff options
author | Hugo Locurcio <hugo.locurcio@hugo.pro> | 2021-07-31 21:49:52 +0200 |
---|---|---|
committer | Hugo Locurcio <hugo.locurcio@hugo.pro> | 2021-08-16 17:06:05 +0200 |
commit | 91a5ff9dc37615ec98d6ffbdd0165ef135662d80 (patch) | |
tree | 7a66f24528f16edfcffb2de93b62f13fb4388d80 /platform/osx/joypad_osx.h | |
parent | a12f83206021fa16a5cba5a950e7bb135cf75b8b (diff) | |
download | redot-engine-91a5ff9dc37615ec98d6ffbdd0165ef135662d80.tar.gz |
Fix Xbox controllers in Bluetooth mode on macOS
This prevents the D-pad up arrow from being registered as pressed
when it isn't, and pressing any direction from activating the next
arrow clockwise of it.
Co-authored-by: Scott Wadden <scott.wadden@gmail.com>
Diffstat (limited to 'platform/osx/joypad_osx.h')
-rw-r--r-- | platform/osx/joypad_osx.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/platform/osx/joypad_osx.h b/platform/osx/joypad_osx.h index bf7e8949df..c060c3d523 100644 --- a/platform/osx/joypad_osx.h +++ b/platform/osx/joypad_osx.h @@ -64,6 +64,7 @@ struct joypad { Vector<rec_element> hat_elements; int id = 0; + bool offset_hat = false; io_service_t ffservice = 0; /* Interface for force feedback, 0 = no ff */ FFCONSTANTFORCE ff_constant_force; |