3370 Commits

Author SHA1 Message Date
SerpentSpirale
52f23f33a9 Proper filtering of fallback keyevents 2021-07-22 22:02:17 +02:00
SerpentSpirale
606d633ee3 Add more filters while dispatching events. 2021-07-22 22:02:17 +02:00
SerpentSpirale
17ab69dfad light optimisation of motion events on Gamepad.java 2021-07-22 22:02:17 +02:00
SerpentSpirale
905f05605b Fix typo 2021-07-22 22:02:17 +02:00
SerpentSpirale
4f0bae9431 Optimize mouse movements a very little. 2021-07-22 22:02:17 +02:00
SerpentSpirale
e61c94a0a6 Fix keyboard events being interpreted as gamepad events 2021-07-22 22:02:17 +02:00
SerpentSpirale
f35b880413 optimize keyEvents by checking only changes in state 2021-07-22 22:02:17 +02:00
SerpentSpirale
caf7073866 Fix pointer out of range. 2021-07-22 22:02:16 +02:00
SerpentSpirale
af27b0e09a Better persistence of the pointer index. 2021-07-22 22:02:16 +02:00
SerpentSpirale
6bef0c8742 Use of the Optimizer in the button setting layout. 2021-07-22 22:02:16 +02:00
SerpentSpirale
153e991806 Clean up, keyboard is faster now 2021-07-22 22:02:16 +02:00
SerpentSpirale
22b3583ae1 WIP implementation of the Dpad for the gamepad 2021-07-22 22:02:16 +02:00
SerpentSpirale
dff9d01c66 Remove old keycode converter 2021-07-22 22:02:16 +02:00
SerpentSpirale
f7ef779d05 Transition to the efficient keycode converter. 2021-07-22 22:02:16 +02:00
SerpentSpirale
bf2670aa89 Add a slightly more efficient LWJGL Keycode converter. 2021-07-22 22:02:16 +02:00
SerpentSpirale
c389dd9bb9 Fix GUI button being invisible when in a drawer and the gui was hidden 2021-07-22 22:02:16 +02:00
SerpentSpirale
8dd07ff3b4 Fix subButton behavior in edit mode 2021-07-22 22:02:16 +02:00
SerpentSpirale
78c829bbbf Fix last swipped in key still being pressed 2021-07-22 22:02:16 +02:00
SerpentSpirale
b5134c97d3 Revert "More memory optimisations 👀"
This reverts commit 59b33333118e2d8a6651a4774e21f9855970535b.
2021-07-22 22:02:16 +02:00
SerpentSpirale
c7cb8d45dc Add support for swipeable buttons ! 2021-07-22 22:02:16 +02:00
SerpentSpirale
a5f8c4f69f isSwipeable property is now properly integrated into UI 2021-07-22 22:02:16 +02:00
SerpentSpirale
535d502679 Add string resource 2021-07-22 22:02:16 +02:00
SerpentSpirale
d037ff338d Another small memory optimisation 2021-07-22 22:02:16 +02:00
SerpentSpirale
1f7ba3fa10 More memory optimisations 👀 2021-07-22 22:02:16 +02:00
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