Commit Graph

52 Commits (b8856d246ebedfcbac7508821f213fee90a7d234)

Author SHA1 Message Date
Greenlamp b8856d246e renamed azerty to default since it's not usefull anymore 2024-05-13 02:32:25 +02:00
Greenlamp 769412e452 game is using the custom config with keyboard 2024-05-13 02:29:15 +02:00
Greenlamp e798f72a63 fix imports 2024-05-13 02:03:06 +02:00
Greenlamp 43b459aba1 finished the refactor to use abstract-settings-ui-handler 2024-05-13 01:37:33 +02:00
Greenlamp 8205df46df fix transition bug 2024-05-12 23:28:02 +02:00
Greenlamp 164838c669 input detection for keyboards is working 2024-05-12 23:11:20 +02:00
Greenlamp c6d3f93b3f first iteration of KeyboardBindingUiHandler 2024-05-12 21:22:32 +02:00
Greenlamp c963970adf added key list in keyboard setting binding 2024-05-12 21:03:48 +02:00
Greenlamp d9d455f317 create folder for settings in ui folder 2024-05-12 16:51:18 +02:00
Greenlamp a2dd704737 added snes icons 2024-05-12 14:18:48 +02:00
Greenlamp 3938975710 fix snes controller support 2024-05-12 13:54:49 +02:00
Greenlamp ba42f072e1 update comment in inputs-controller.ts 2024-05-12 13:40:16 +02:00
Greenlamp 8f4669cab6 added comment for gamepad-binding-ui-handler.ts 2024-05-12 13:26:00 +02:00
Greenlamp 6f8601815f renaming + small cleanup 2024-05-12 03:22:37 +02:00
Greenlamp bf8f62bc9e renaming + fix a display bug 2024-05-12 01:59:38 +02:00
Greenlamp 5076625259 added placeholder when nogamepads is detected 2024-05-12 01:27:17 +02:00
Greenlamp fc2a0e06ec better layout management 2024-05-11 23:33:24 +02:00
Greenlamp 83a26d8e58 get missmatch function call 2024-05-11 18:42:32 +02:00
Greenlamp e5e100990e key displayed are correctly updated when swap or controller change + custom mapping is effective everywhere 2024-05-11 17:54:34 +02:00
Greenlamp 5ff09389db swap is working + display current assignation on rebinding 2024-05-11 15:43:38 +02:00
Greenlamp cfa919b46c added already assigned key in the UI 2024-05-11 14:51:01 +02:00
Greenlamp 7ced12e13b refactored input-controller to use config 2024-05-11 14:31:48 +02:00
Greenlamp cffcf9afd0 cleaned up a bit the code + added some more config 2024-05-11 13:33:13 +02:00
Greenlamp 931ec61f87 commented gamepad fallback on disconnect 2024-05-11 12:45:45 +02:00
Greenlamp 043216aa75 adding essential data into config file 2024-05-11 02:36:47 +02:00
Greenlamp 022c4351d3 adding essential data into config file 2024-05-11 02:33:41 +02:00
Greenlamp ef4bb9c3b5 added ui to confirm or cancel the new input 2024-05-11 01:26:06 +02:00
Greenlamp f81df957a5 Merge branch 'main' of github.com:Greenlamp2/pokerogue into feat/mapping_setting
 Conflicts:
	src/inputs-controller.ts
	src/system/settings.ts
2024-05-10 15:43:59 +02:00
Greenlamp2 22a73642df
Fix - Gamepad support setting "lost focus" behaviour (#658)
* fix "lost focus behaviour" when disabling gamepad and thus repeating RIGHT key

* added some comment

* added full TSDoc, helped by chatGPT, refined every entry manually of course
2024-05-10 09:26:45 -04:00
Greenlamp c72a50a38c added controller input sprite 2024-05-10 15:02:00 +02:00
Greenlamp 42ef4b963b Merge branch 'fix/gamepad_support_disable_focus' of github.com:Greenlamp2/pokerogue into feat/mapping_setting
 Conflicts:
	src/inputs-controller.ts
2024-05-10 02:23:08 +02:00
Greenlamp 58845410e6 added full TSDoc, helped by chatGPT, refined every entry manually of course 2024-05-10 02:16:03 +02:00
Greenlamp 0d2eb1d983 working button detection in menu 2024-05-09 23:23:09 +02:00
Greenlamp 5c9af9bb3c Merge branch 'fix/gamepad_support_disable_focus' of github.com:Greenlamp2/pokerogue into feat/mapping_setting
 Conflicts:
	src/inputs-controller.ts
	src/system/settings.ts
2024-05-09 20:25:11 +02:00
Greenlamp 22e7845480 fix changes made while commenting 2024-05-09 17:38:59 +02:00
Greenlamp ecbcb0bf70 added some comment 2024-05-09 17:14:59 +02:00
Greenlamp d34d48f1b5 remove localStorage for gamepads connected + fix lost focus effect on controller change + disconnect/reconnect handling 2024-05-09 17:02:07 +02:00
Greenlamp b58a444f80 remove localStorage for gamepads connected + fix lost focus effect on controller change 2024-05-09 12:55:00 +02:00
Greenlamp 92c493fe83 added some comment 2024-05-09 04:06:32 +02:00
Greenlamp e162edf6f5 restrict inputs to chosen controller 2024-05-09 03:37:08 +02:00
Greenlamp b35af93ecb added setting selector for controller like lang + populate the setting with detected devices 2024-05-09 03:33:25 +02:00
Greenlamp d4e1834e7c Merge branch 'fix/gamepad_support_disable_focus' of github.com:Greenlamp2/pokerogue into feat/mapping_setting
 Conflicts:
	src/inputs-controller.ts
	src/system/settings.ts
2024-05-09 01:32:14 +02:00
Greenlamp 45e40f66ce fix "lost focus behaviour" when disabling gamepad and thus repeating RIGHT key 2024-05-08 23:07:17 +02:00
Greenlamp 80e8d43c56 added basic key settings 2024-05-08 17:16:20 +02:00
Greenlamp 22c81f1a80 renamed buttons to LB & RB + added whitelist for these buttons to specific handler 2024-05-08 16:04:33 +02:00
Greenlamp 4a49ff848a allow 2 button to be pressed at the same time 2024-05-05 19:34:21 -04:00
Greenlamp2 82b0606311
Fix - stop repeating key when focus is lost (#514)
* disable all key pressed when trying to open a modal

* in fact, checking the if the focus is lost is a better solution
2024-05-05 18:40:05 -04:00
Greenlamp 408b189966 1st attempt with a fix for black screen 2024-05-05 11:43:38 -04:00
Greenlamp 3ee9c39975 disable the gamepad support when the option is on OFF 2024-05-05 10:45:18 -04:00
Greenlamp2 d98f7733d4
Rework - Inputs management to include all gamepad mapping V2 (#429)
* rework of the input handling, including different gamepad and keyboard

* rework of the input handling, including different gamepad and keyboard

* first version of a too complex inputHandler based on phaser3-merged-input

* removed useless control management and kept it simple for our use case, investigating to put out button_XX()

* renamed inputHandler to inputController

* aggregate directions and some action into a same method + fix menu return value

* added back repeated input feature on keeping down a key

* cleanup + return type

* fix submit/action doing two things simultaneously, still same behaviour as before

* extracted UI inputs out of battle-scene

* tab -> spaces

* tab -> spaces what about now github ?

* tab -> spaces final (maybe)

* tried to fix the plugin loading issue on prod

* remove Plugins things as it's too uncertain how it works on prod

* seems old code source is indented with tab

* cleanup

* cleanup

* cleanup

* putting in an enum file the enum buttons

* fix repeating stats button + change message in event when the key is repeating

* added return type for ui-inputs

* added return type for inputs-controller

* adapted the code to integrate changes of bennybroseph
2024-05-05 10:30:00 -04:00