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

Joystick Support #44

Open
calejvaldez opened this issue Nov 20, 2024 · 1 comment · May be fixed by #53
Open

Joystick Support #44

calejvaldez opened this issue Nov 20, 2024 · 1 comment · May be fixed by #53
Assignees
Labels
enhancement New feature or request research

Comments

@calejvaldez
Copy link
Member

Summary

Iris should be able to support joysticks for accessibility purposes.

Concept images and/or code

gilrs

@calejvaldez calejvaldez added the enhancement New feature or request label Nov 20, 2024
@calejvaldez calejvaldez self-assigned this Nov 20, 2024
@calejvaldez calejvaldez moved this to Sprint Backlog in CHI Conference Roadmap Dec 14, 2024
@calejvaldez
Copy link
Member Author

calejvaldez commented Dec 18, 2024

A way I think we can approach this is by creating a JoystickWrapper component that takes props labeled left, right, up, down and would include an id, like {left: "COMPONENT_ID"} . When a user makes a movement using a joystick, the JoystickWrapper would have a red border. If a user makes a valid movement (that is, a key is available in the object for that movement), it'll add a red border to the COMPONENT_ID.

Pseudocode:

type JoystickWrapperProps = {
  left?: string;
  right?: string;
  up?: string;
  down?: string;
}

export default function JoystickWrapper({left, right, up, down}) {
   
}

The biggest downside to this is needing to implement this to all the other existing Iris code.

@calejvaldez calejvaldez linked a pull request Dec 19, 2024 that will close this issue
@calejvaldez calejvaldez linked a pull request Dec 19, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request research
Projects
Status: Sprint Backlog
Development

Successfully merging a pull request may close this issue.

1 participant