Bubba-3D  0.9.0
Awesome game engine!
Public Member Functions | List of all members
JoystickButton Class Reference

#include <JoystickButton.h>

Inheritance diagram for JoystickButton:
Input

Public Member Functions

 JoystickButton (IJoystickTranslation::Button button)
 
 JoystickButton (IJoystickTranslation::Button pos, IJoystickTranslation::Button neg)
 
ControlStatus getStatus ()
 
ControlStatus::Activator getActivator ()
 
- Public Member Functions inherited from Input
bool isDual ()
 

Additional Inherited Members

- Protected Member Functions inherited from Input
 Input (bool dual)
 
- Protected Attributes inherited from Input
bool dual
 

Detailed Description

An input class for joystick buttons.

Definition at line 31 of file JoystickButton.h.

Constructor & Destructor Documentation

JoystickButton::JoystickButton ( IJoystickTranslation::Button  joystickButton)

Creates a non-dual button activated when button number button is pressed.

Creates a button representing a joystick button.

Definition at line 30 of file JoystickButton.cpp.

JoystickButton::JoystickButton ( IJoystickTranslation::Button  pos,
IJoystickTranslation::Button  neg 
)

Creates a dual button activated when either button is pressed. When neg is pressed the ControlStatus value is -100, when pos is pressed the value is 100. If both or none are pressed the value is 0.

Definition at line 34 of file JoystickButton.cpp.


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