Commit Graph
11 Commits
Author SHA1 Message Date
Duy Tran Khanh 4c502ccec3 ControllerInput: correct scrolling 2022-11-01 06:14:26 +07:00
Duy Tran Khanh 02a835685d Fixes #406: L1, R1 cause double slot switching 2022-10-18 18:17:32 +07:00
Duy Tran Khanh 4bc676e4fa ControllerInput: correct LThumb degree calculation 2022-10-17 07:35:18 +07:00
Duy Tran Khanh db7117e407 ControllerInput: Properly handle left joystick directions 2022-10-16 17:42:16 +07:00
Duy Tran Khanh d6d6f7b989 Bug fix #397: ControllerInput mapping issue
Because GLFW_GAMEPAD_AXIS_LR_TRIGGER have the same constant values as
GLFW_GAMEPAD_BUTTON_LR_BUMPER, both get overriden to left/right mouse
button.

This commit also corrects Back, Start button mapping: tried to write
mapping to a wrong+uninitialized NSDictionary
2022-10-15 10:04:26 +07:00
Duy Tran Khanh 31fee44bf7 Fixes (mostly for #385) 2022-10-06 20:43:03 +07:00
Duy Tran Khanh b46c64cc59 Changes and fixes to input, mark nonatomic to others
- Controller: implement ticking, swapped thumbstick mapping to match
common usage
- External mouse should continue sending move while mouse button is
being held
- Tweak touch scroll velocity division to 100
2022-10-02 10:54:04 +07:00
Duy Tran Khanh ec575fb8c4 Properly handled gamepad joystick (untested) 2022-09-25 11:00:05 +07:00
khanhduytran0 f27808464b Allow control settings to be changed ingame 2022-09-04 09:47:46 +07:00
Duy Tran Khanh a7e6022452 Correct trigger buttons keycodes 2022-08-28 21:51:57 +07:00
Duy Tran Khanh 97c2f4b473 Added controller input (not tested)
This works by mapping gamepad keys to keyboard keys, just like
PojavLauncher Android.
2022-08-28 21:47:25 +07:00