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

Send gamepad and keyboard input to Runtime #14

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Conversation

Hal-9k1
Copy link
Collaborator

@Hal-9k1 Hal-9k1 commented Oct 18, 2024

  • Add editor overlay when keyboard controls enabled
    This serves to remind the user that keyboard strokes are being sent to the robot.
  • Send gamepad and keyboard inputs from renderer to main
    Get inputs half of the way to the robot...
  • Send inputs from main process to Runtime
    ...and then the other half.
  • Lint
  • Discard gamepad indices when converting to inputs
    Might introduce a bug, but I'm not sure what to do with the indices before sending them to the robot. The protos Input object itself has no field to record the index -- is it just their order in the UserInput packet? This would also mean that input sources shouldn't be mixed, which I've also done. Testing is needed.

Remove RobotInputDatum, which marked protos Input objects with the
source gamepad index, and just send the Input objects from renderer to
main. I'm not sure how to communicate the index information to Runtime
or if it's important at all. Omitting this may have introduced a bug but
ts is happy for now, so...
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.

1 participant