Skip to content

Conversation

@eruvanos
Copy link
Member

@eruvanos eruvanos commented Feb 14, 2025

This PR contains a draft for controller support within the UI.

The basic idea is to transform controller events to UIEvents, which could be done by the anything else later.

In addition it would make sense to integrate with the feature input system and translate on_action to OnAction events like focus_up, etc

This PR contains Kenney InputPrompts for XBox Controller, they could be used to setup interaction indicator within the UI.

What to do with this PR:

  • Discuss the state of action input to replace the UIControllerBridge
  • Discuss if the Kenney assets should be kept (https://kenney.nl/assets/input-prompts)
  • Maybe get somebody to test the API and provide feedback

This PR addresses #1270 and #2601

Current state

  • Basic setup is done
  • Some technical debt still left (controller interactions simulate mouse behavior instead of widgets handle controller input)
  • In the future it would make sense to drop the whole UIControllerEvents and use the action input system from @Cleptomania

@eruvanos eruvanos mentioned this pull request Mar 4, 2025
20 tasks
@eruvanos eruvanos force-pushed the gui/controller branch 2 times, most recently from d224a1f to fce9a5b Compare March 9, 2025 20:24
@eruvanos eruvanos marked this pull request as ready for review April 26, 2025 21:33
eruvanos added 2 commits May 4, 2025 21:53
# Conflicts:
#	CHANGELOG.md
#	arcade/gui/widgets/slider.py
@eruvanos eruvanos merged commit a17e955 into development May 7, 2025
8 checks passed
@eruvanos eruvanos deleted the gui/controller branch May 7, 2025 21:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants