3291 Commits

Author SHA1 Message Date
SerpentSpirale
62ac772904 Clean up some code 2021-07-22 22:02:12 +02:00
SerpentSpirale
2fa4a2756e Fix crash due to crash when a controller isn't recognized 2021-07-22 21:56:35 +02:00
SerpentSpirale
7835a76a95 Clean up mappings 2021-07-22 21:56:35 +02:00
SerpentSpirale
78df3709ae Fix gamepad thread crashing when unfocused. 2021-07-22 21:56:35 +02:00
SerpentSpirale
7b8526c929 Fix player still moving when going out of menus 2021-07-22 21:56:34 +02:00
SerpentSpirale
3e09983501 add more visibility options on controls 2021-07-22 21:56:34 +02:00
SerpentSpirale
c4247570c6 Bump up the minimum deadzone 2021-07-22 21:56:34 +02:00
SerpentSpirale
4edb0ebe34 New deadzone system + auto-grab controller 2021-07-22 21:56:34 +02:00
SerpentSpirale
90aac77ade add ability to detect if a gamepad is connected 2021-07-22 21:56:34 +02:00
SerpentSpirale
d994c12cc3 Fix toogle state not resetting 2021-07-22 21:56:34 +02:00
SerpentSpirale
8164f4a9a9 Set shift key to be toggleable 2021-07-22 21:56:34 +02:00
SerpentSpirale
331a637e19 Add ability to retreive gamepadButton state 2021-07-22 21:56:34 +02:00
SerpentSpirale
b86de4db95 Any gameButton can be toogled if needed now 2021-07-22 21:56:34 +02:00
SerpentSpirale
28725743fa Fix more than one keycode not taken into account 2021-07-22 21:56:34 +02:00
SerpentSpirale
8988a6075f Fix subControlButton appearing when using GUI button 2021-07-22 21:56:34 +02:00
SerpentSpirale
2d3349ceed Add support for analog triggers 2021-07-22 21:56:34 +02:00
SerpentSpirale
3c1bb45f57 Gamebutton is more flexible now 2021-07-22 21:56:34 +02:00
SerpentSpirale
ddb2307a3d GameButtons are now used in the mapping
- Fixes spam issue
2021-07-22 21:56:34 +02:00
SerpentSpirale
1d63e30e6c Add GamepadButton.java 2021-07-22 21:56:34 +02:00
SerpentSpirale
91c04a15c3 Introduce the gamepad feature for testing. 2021-07-22 21:56:34 +02:00
SerpentSpirale
bff53f4110 Add WIP gamepad.java 2021-07-22 21:56:34 +02:00
SerpentSpirale
0431211788 Add gamepadMapping.java 2021-07-22 21:56:34 +02:00
SerpentSpirale
576ee9a930 Add gamepadJoystick.java 2021-07-22 21:56:34 +02:00
SerpentSpirale
b9b792623f Add GamepadDpad.java 2021-07-22 21:56:34 +02:00
SerpentSpirale
d48ab790a0 Removed a now useless option 2021-07-22 21:56:34 +02:00
SerpentSpirale
35c23be3f0 De-hardcoded a string 2021-07-22 21:56:34 +02:00
SerpentSpirale
c13eda73e1 creating a subButton will inherit its mother's visual properties 2021-07-22 21:56:34 +02:00
SerpentSpirale
c1211f03e9 Added margins for subButtons within a drawer 2021-07-22 21:56:34 +02:00
SerpentSpirale
a6bd302d36 New "add drawer" button ! 2021-07-22 21:56:34 +02:00
SerpentSpirale
5de6ba4633 Updated constructors fcontrolData with a default pos to the center 2021-07-22 21:56:34 +02:00
SerpentSpirale
d0b75ee888 Add a an item into menu_customctrl.xml 2021-07-22 21:56:34 +02:00
SerpentSpirale
5fd9a5893e Update strings.xml 2021-07-22 21:56:34 +02:00
SerpentSpirale
a00e03270f Fix subButtons not appearing when on edit mode. 2021-07-22 21:56:34 +02:00
SerpentSpirale
2ed45d4b17 Switch button size to dp to allow better scalability across resolutions 2021-07-22 21:56:34 +02:00
SerpentSpirale
e67ffe77d0 Update the dp scaling methods 2021-07-22 21:56:34 +02:00
SerpentSpirale
c6cff88133 Add hide GUI support for Drawer and SubButton 2021-07-22 21:56:33 +02:00
SerpentSpirale
659563d3f8 The subButton is now properly hidden on launch 2021-07-22 21:56:33 +02:00
SerpentSpirale
4de83829fa Force ControlSubButton to keep the same size as his parent 2021-07-22 21:56:33 +02:00
SerpentSpirale
2edfc3d559 Fix crash 2021-07-22 21:56:33 +02:00
SerpentSpirale
87187f7999 Tweaked xml file to be nicer to the eyes 2021-07-22 21:56:33 +02:00
SerpentSpirale
d46523025d Fix auto refocusing on EditText via the new DefocusableScrollView 2021-07-22 21:56:33 +02:00
SerpentSpirale
04999718b2 Add a custom scrollView that have the ability to disable the auto-refocus. 2021-07-22 21:56:33 +02:00
SerpentSpirale
55c0d19c49 Rewrote EditControl popups to be easily extended. 2021-07-22 21:56:33 +02:00
SerpentSpirale
6a58867051 Update ControlLayout.java to support new buttons 2021-07-22 21:56:33 +02:00
SerpentSpirale
2a627bde04 Update HandleView to support different button. 2021-07-22 21:56:33 +02:00
SerpentSpirale
0a19daae5c Add button editing classes 2021-07-22 21:56:33 +02:00
SerpentSpirale
b365d8ff84 Modified ControlButton to be more extensible.
Add support for new properties.
Deprecated property *hidden* removed
2021-07-22 21:56:33 +02:00
SerpentSpirale
77248316d6 Add xml files for the various buttons 2021-07-22 21:56:33 +02:00
SerpentSpirale
e9a63ae9f6 Add ControlDrawer in CustomControls 2021-07-22 21:56:33 +02:00
SerpentSpirale
430392deac Add ConstrolSubButton 2021-07-22 21:56:33 +02:00