Skip to content

Read joystick inputs #6

@joshkarbi

Description

@joshkarbi

We want to use some sort of joystick/gamepad combination to drive the rover.

We have to right callback functions that can read inputs from the control.

This should include:

  • Button presses on the controller
  • X and Y magnitudes for the stick control(s)

A tiny callback for generic key press events is in Main.java
" primaryScene.setOnKeyPressed(event -> { ... } ); "
If the joystick inputs can be registered as key presses then this should work.
If not, find a good library and use it.

To test:

  • Get a joystick from Geoffrey and try to print to the console some values from it
  • See if it makes sense

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions