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

SDL Input #3

Open
5 tasks
arves100 opened this issue Feb 6, 2021 · 0 comments
Open
5 tasks

SDL Input #3

arves100 opened this issue Feb 6, 2021 · 0 comments
Labels
enhancement New feature or request idea Something that is currently in thinking
Milestone

Comments

@arves100
Copy link
Owner

arves100 commented Feb 6, 2021

The code was designed to support only mouse and keyboard, after the switch to a basic SDL window system, the input would eventually need to be converted.
An idea would be to use specifically scankeys and have the reply system report them accordingly, unfortunatelly, this would also mean breaking the reply files (and there might be no way to restore them).
As I would like to keep compatibility with as much things as possible, while adding support for controller devices as well (such as joystick and gamepads), here's what needs to be done:

  • Convert DirectInput code with SDL2 input code (oldgen_lnxa/master can help with this)
  • Implement an Action-like approach to associate a specific device with an action, this can help to have support for both keyboard and joystick at the same time.
  • Add new API to cover with joystick and gamepad support
  • Create a new reply format that will register action inputs and the device that comes with it (either a keyboard, joystick, etc...)
  • Implement testing code for touch as well, this would be a good step for porting under Android/iOS or PC with touchscreens
@arves100 arves100 added the idea Something that is currently in thinking label Mar 1, 2023
@arves100 arves100 changed the title Handle of SDL Joysticks SDL Input Mar 1, 2023
@arves100 arves100 added the enhancement New feature or request label Mar 1, 2023
@arves100 arves100 added this to the Linux bringup (beta 1.0 milestone Mar 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request idea Something that is currently in thinking
Projects
None yet
Development

No branches or pull requests

1 participant