RobotCore
Robot Core Documentation
Public Member Functions | List of all members
robotCore.GenericHID Class Referenceabstract

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

Inheritance diagram for robotCore.GenericHID:
robotCore.Joystick

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.Joystick.

◆ getX()

abstract double robotCore.GenericHID.getX ( )
abstract
Returns
Returns the current horizontal position, a value between -1.0 and 1.0

Reimplemented in robotCore.Joystick.

◆ getY()

abstract double robotCore.GenericHID.getY ( )
abstract
Returns
Returns the current vertical position, a value between -1.0 and 1.0

Reimplemented in robotCore.Joystick.


The documentation for this class was generated from the following file: