3546 Commits

Author SHA1 Message Date
SerpentSpirale
ba0db19fac Fix handleview being instantiated when unneeded 2021-07-22 22:02:16 +02:00
SerpentSpirale
f114e82422 Properly takes into account if a button is swipeable. 2021-07-22 22:02:16 +02:00
SerpentSpirale
17aa7614a8 Clean up useless code 2021-07-22 22:02:16 +02:00
SerpentSpirale
85f90be216 Fix crash due to assuming the handleview is non-null 2021-07-22 22:02:15 +02:00
SerpentSpirale
dec6fba244 Fix values not being filtered upon instance creation 2021-07-22 22:02:15 +02:00
SerpentSpirale
9cc4243966 Add a memory optimization if you don't edit the buttons 2021-07-22 22:02:15 +02:00
SerpentSpirale
bc4e6e7c16 Clean up code. 2021-07-22 22:02:15 +02:00
SerpentSpirale
6493daaf66 Removed some stubs 2021-07-22 22:02:15 +02:00
SerpentSpirale
4502c96dfe Made use a the containKeycode function instead of looking at one keycode only 2021-07-22 22:02:15 +02:00
SerpentSpirale
fed34eedf9 Make use of the OOP to clean up ControlLayout. 2021-07-22 22:02:15 +02:00
SerpentSpirale
0479e13f6e ControlData can check its keycodes 2021-07-22 22:02:15 +02:00
SerpentSpirale
635b41648c Clean up ControlData 2021-07-22 22:02:15 +02:00
SerpentSpirale
01a710485c Cleanup of buttons 2021-07-22 22:02:15 +02:00
SerpentSpirale
1fac5eb634 Add isSwipeable boolean. 2021-07-22 22:02:15 +02:00
SerpentSpirale
6f100d6722 Fix slider performance degradation when editing controls 2021-07-22 22:02:15 +02:00
SerpentSpirale
e6d8475a64 Tweak how the Gamepad Thread sleeps/its priority. 2021-07-22 22:02:15 +02:00
SerpentSpirale
c743662b37 Simplified the code from GamePad.java 2021-07-22 22:02:15 +02:00
SerpentSpirale
003e17a12c The mouse is now butter smooth. 2021-07-22 22:02:15 +02:00
SerpentSpirale
14bf84fbe0 Slight performance optimization for mouse users. 2021-07-22 22:02:15 +02:00
SerpentSpirale
691bf427cc attempt to reduce memory footprint of the map. 2021-07-22 22:02:15 +02:00
SerpentSpirale
dcd0f5d0d3 Slight performance optimization related to DEBUG_STRING 2021-07-22 22:02:15 +02:00
SerpentSpirale
8e2a314c27 Clean up unused native functions 2021-07-22 22:02:15 +02:00
SerpentSpirale
8c17dff2d7 Removed useless instructions since they are supplented by others in the Motion Event. 2021-07-22 22:02:14 +02:00
SerpentSpirale
6742d98baf Clean up code. 2021-07-22 22:02:14 +02:00
SerpentSpirale
876ae5c285 Optimized how many times we use handle GUI bar function. 2021-07-22 22:02:14 +02:00
SerpentSpirale
2d818e8786 Set a lower priority for the mouseGrab thread. 2021-07-22 22:02:14 +02:00
SerpentSpirale
af1f0d678b Ooops I was sending a mouse click as a keyboard press... 2021-07-22 22:02:14 +02:00
SerpentSpirale
573c7c3483 Fix a missing test 2021-07-22 22:02:14 +02:00
SerpentSpirale
fc00455a48 Remove two instructions 2021-07-22 22:02:14 +02:00
SerpentSpirale
cbc024c029 Simplified onTouch code structure.
Added bugs.
2021-07-22 22:02:14 +02:00
SerpentSpirale
84490ec5a7 Fix a crash in gamepadEvent detection 2021-07-22 22:02:14 +02:00
SerpentSpirale
d95112d5ff Simplified GamePad code 2021-07-22 22:02:14 +02:00
SerpentSpirale
3099301645 Clean up onTouch function 2021-07-22 22:02:14 +02:00
SerpentSpirale
1aabb184d3 The speed of gamepad cursor is now res independent. 2021-07-22 22:02:14 +02:00
SerpentSpirale
33ebc50519 Clean up useless code 2021-07-22 22:02:14 +02:00
SerpentSpirale
9ac66cd3c8 Tweak scroll feature to be less resolution dependent and more friendly to use. 2021-07-22 22:02:13 +02:00
SerpentSpirale
3aa408af96 Fix crashes on minecraft 1.13+ 2021-07-22 22:02:13 +02:00
SerpentSpirale
0ddc5db967 - Reset state will now only send an input when necesarry. 2021-07-22 22:02:13 +02:00
SerpentSpirale
95fd415f94 Reduce gamepad sensitivity when in menus 2021-07-22 22:02:13 +02:00
SerpentSpirale
a6136f9e46 Add versionning for the custom controls. 2021-07-22 22:02:13 +02:00
SerpentSpirale
8a85ea819b Buttons are into packages now. 2021-07-22 22:02:13 +02:00
SerpentSpirale
d1dc7ec645 Added needed imports 2021-07-22 22:02:13 +02:00
SerpentSpirale
087eadb1e5 The pointer now appears only when needed. 2021-07-22 22:02:13 +02:00
SerpentSpirale
1b605d0548 The controller now uses a pointer image that isn't linked to the touchpad pointer 2021-07-22 22:02:13 +02:00
SerpentSpirale
45d2a26c51 Add the pointer to the main layout. 2021-07-22 22:02:13 +02:00
SerpentSpirale
14f76142b9 Add pointer resource 2021-07-22 22:02:13 +02:00
SerpentSpirale
bf228199e4 Forgot to add the multiplier 2021-07-22 22:02:13 +02:00
SerpentSpirale
a31331a0f1 Fallback for unproperly detected gamepads 2021-07-22 22:02:13 +02:00
SerpentSpirale
ee00a737d4 more accurate gamepad deadzone detection 2021-07-22 22:02:13 +02:00
SerpentSpirale
e77499778f Introduced unified mouse sensitivity. 2021-07-22 22:02:13 +02:00