The GeneriacHID class is the base class for input devices such as joysticks.
More...
The GeneriacHID class is the base class for input devices such as joysticks.
- Author
- John Gaby
◆ getRawButton()
abstract boolean robotCore.GenericHID.getRawButton |
( |
int | button | ) |
|
|
abstract |
Reads the state of a specified button
- Parameters
-
button | - specifies the button to read |
- Returns
- Returns true if the button is pressed, false if it is not.
Reimplemented in robotCore.JoystickBase.
◆ getX()
abstract double robotCore.GenericHID.getX |
( |
| ) |
|
|
abstract |
- Returns
- Returns the current horizontal position, a value between -1.0 and 1.0
Reimplemented in robotCore.JoystickBase.
◆ getY()
abstract double robotCore.GenericHID.getY |
( |
| ) |
|
|
abstract |
- Returns
- Returns the current vertical position, a value between -1.0 and 1.0
Reimplemented in robotCore.JoystickBase.
The documentation for this class was generated from the following file:
- D:/SDASVN/2024/RaspberryPi/VSCode/Source/robotCore/GenericHID.java