3432 Commits

Author SHA1 Message Date
SerpentSpirale
97a8a11f80 Improved precision of the Dpad detection 2021-07-22 22:02:17 +02:00
SerpentSpirale
00e60ee3bd Tweak KeyEvent filtering 2021-07-22 22:02:17 +02:00
SerpentSpirale
c2e851fc8f - Gamepad optimisations (now works on 1.13+) 2021-07-22 22:02:17 +02:00
SerpentSpirale
5855b1ef93 Revert "Revert "light optimisation of motion events on Gamepad.java""
This reverts commit ebf90783117db65c097f4626e900cf241a60a2a4.
2021-07-22 22:02:17 +02:00
SerpentSpirale
284d0f207d Revert "light optimisation of motion events on Gamepad.java"
This reverts commit 5c010ef076a34ff304b6b47317f53a027b96d431.

Conflicts:
	app_pojavlauncher/src/main/java/net/kdt/pojavlaunch/customcontrols/gamepad/Gamepad.java
2021-07-22 22:02:17 +02:00
SerpentSpirale
ef05b9c955 Clean up some code 2021-07-22 22:02:17 +02:00
SerpentSpirale
047a9f6043 W.I.P dynamic pointer size according to GUI scale 2021-07-22 22:02:17 +02:00
SerpentSpirale
a4b37a7929 Fix gamepad mouse clamping when in game. 2021-07-22 22:02:17 +02:00
SerpentSpirale
9f93161aca Pointer placement is size aware. 2021-07-22 22:02:17 +02:00
SerpentSpirale
d150d38187 Limit gamepad pointer range 2021-07-22 22:02:17 +02:00
SerpentSpirale
779352a096 Update build.gradle 2021-07-22 22:02:17 +02:00
SerpentSpirale
7a49cadaaa Implement a checkboard pattern for the background color of buttons 2021-07-22 22:02:17 +02:00
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