RSeries astromech firmware
JoystickController Class Reference

#include <JoystickController.h>

+ Inheritance diagram for JoystickController:
+ Collaboration diagram for JoystickController:

Classes

struct  Accelerometer
 
struct  Analog
 
struct  AnalogButton
 
struct  AnalogStick
 
struct  Button
 
struct  Event
 
struct  Gyroscope
 
struct  Sensor
 
struct  State
 
struct  Status
 

Public Types

enum  BatteryStatus {
  kShutdown = 0x01, kDying = 0x02, kLow = 0x03, kHigh = 0x04,
  kFull = 0x05, kCharging = 0xEE
}
 
enum  ConnectionStatus { kUSB, kBluetooth }
 

Public Member Functions

 JoystickController ()
 
bool isConnected () const
 
bool isConnecting () const
 
bool isCongested () const
 
virtual void disconnect ()
 
virtual void notify ()
 
virtual void onConnect ()
 
virtual void onDisconnect ()
 
virtual void stop ()
 

Public Attributes

State state
 
Event event
 

Protected Attributes

bool fConnected
 
bool fConnecting
 
bool fCongested
 

Member Enumeration Documentation

◆ BatteryStatus

Enumerator
kShutdown 
kDying 
kLow 
kHigh 
kFull 
kCharging 

◆ ConnectionStatus

Enumerator
kUSB 
kBluetooth 

Constructor & Destructor Documentation

◆ JoystickController()

JoystickController::JoystickController ( )
inline

Member Function Documentation

◆ disconnect()

virtual void JoystickController::disconnect ( )
inlinevirtual

◆ isCongested()

bool JoystickController::isCongested ( ) const
inline

◆ isConnected()

bool JoystickController::isConnected ( ) const
inline

◆ isConnecting()

bool JoystickController::isConnecting ( ) const
inline

◆ notify()

virtual void JoystickController::notify ( )
inlinevirtual

◆ onConnect()

virtual void JoystickController::onConnect ( )
inlinevirtual

◆ onDisconnect()

virtual void JoystickController::onDisconnect ( )
inlinevirtual

◆ stop()

virtual void JoystickController::stop ( )
inlinevirtual

Member Data Documentation

◆ event

Event JoystickController::event

◆ fCongested

bool JoystickController::fCongested
protected

◆ fConnected

bool JoystickController::fConnected
protected

◆ fConnecting

bool JoystickController::fConnecting
protected

◆ state

State JoystickController::state

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