Robot Core Documentation
Loading...
Searching...
No Matches
robotCore.GenericHID Class Referenceabstract

The GeneriacHID class is the base class for input devices such as joysticks. More...

Inheritance diagram for robotCore.GenericHID:
robotCore.JoystickBase

Public Member Functions

abstract boolean getRawButton (int button)
 
abstract double getX ()
 
abstract double getY ()
 

Detailed Description

The GeneriacHID class is the base class for input devices such as joysticks.

Author
John Gaby

Member Function Documentation

◆ 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: