Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implementing Controller Rebinding, Refactoring Controls System and Reworking Button Icons #81

Merged
merged 17 commits into from
Apr 30, 2024

Conversation

jasminegamedev
Copy link
Collaborator

@jasminegamedev jasminegamedev commented Apr 26, 2024

This is still Work in Progress and is not ready to merge yet.
This PR Implements Controller/Keyboard rebinding into the game. This includes new menus to handle the rebinding process, and reworking the backend systems as well to be able to support it.
This also reworks how we determine button icons to be based on the key/button name.

Todo:

  • Test binding for all supported keys and buttons and make sure all icons work as expected. Possibly limit it so bindings can't work if they don't have icons.
  • Better handle some special cases like mac vs windows icons.
  • Clean up binding screen to show timer, and better names.
  • Additional cleanup and bug fixes.

Resolves #52

@jasminegamedev jasminegamedev added the enhancement New feature or request label Apr 26, 2024
@jasminegamedev jasminegamedev added this to the 0.7.0 blockers milestone Apr 26, 2024
@jasminegamedev jasminegamedev self-assigned this Apr 26, 2024
@axiand axiand mentioned this pull request Apr 28, 2024
Also adding actions for resetting and clearing bindings
Fixing missing dpad icons.
Fixing issue with default deadzone not getting set or reset correctly.
Fixing bug where Positive and Negative directions on an axis couldn't be bound to the same virtual button.
@jasminegamedev jasminegamedev marked this pull request as ready for review April 30, 2024 01:23
@jasminegamedev
Copy link
Collaborator Author

I believe this is now working, and is ready to merge.

There may still be a few binding issues, but some of these come from Foster, so we may want to look into fixing them separately. Mainly, a few keyboard keys don't seem to get registered as "Pressed" correctly, like the Windows button and the numlock button. I think this is probably acceptable for now, but we can revisit it if people complain.

There's also a known bug in Foster with Controllers where the select and home buttons seem to be flipped. I have a temporary workaround for this, but we may need to follow up on this if it gets fixed in Foster.

@jasminegamedev jasminegamedev merged commit 954de57 into dev Apr 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Rebind controls ingame
1 participant