Gamepad Controls #40
Labels
No labels
bug
doodad
enhancement
levels & doodads
security
ui toolkit
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: SketchyMaze/doodle#40
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The game should be playable using a USB gamepad controller.
X Style and N Style
There should be an option in the Game Settings to, at the very least, switch the control scheme between Xbox style and Nintendo style (A/B and X/Y buttons swapped).
All of my controllers are Nintendo's so this ticket will use N style controls:
General Controls
During gameplay:
Mouse Cursor Mode
When in the Level Editor the gamepad should be able to toggle between "mouse cursor mode" and normal mode.
In mouse mode:
Navigating UI Elements
Probably the UI toolkit itself should become gamepad-aware.
Upon receiving directional inputs (outside of Play Mode), the UI toolkit should "highlight" widgets managed by the Supervisor in the nearest direction from the currently highlighted widget.
e.g. when a Down input is received, the nearest widget south of the currently selected one becomes selected.
Upon the very first direction input on loading a new scene, the top-left-most widget is highlighted by default.
The highlight would take the form of a rectangle that outlines around the widget in question.