Joystick Class Reference

#include <RobotAPI/drivers/GamepadUnit/Joystick.h>

Public Member Functions

void close ()
 
void executeEffect (int gain=100, const int nTimes=1)
 
bool open (std::string const &deviceName, std::string const &deviceEventName)
 
bool opened () const
 
bool pollEvent ()
 

Public Attributes

std::vector< int16_t > axis
 
std::vector< bool > buttonsPressed
 
std::string name
 
int numberOfAxis
 
int numberOfButtons
 

Detailed Description

Definition at line 39 of file Joystick.h.

Member Function Documentation

◆ close()

void close ( )
inline

Definition at line 276 of file Joystick.h.

+ Here is the caller graph for this function:

◆ executeEffect()

void executeEffect ( int  gain = 100,
const int  nTimes = 1 
)
inline

Definition at line 122 of file Joystick.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ open()

bool open ( std::string const &  deviceName,
std::string const &  deviceEventName 
)
inline

Definition at line 55 of file Joystick.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ opened()

bool opened ( ) const
inline

Definition at line 93 of file Joystick.h.

◆ pollEvent()

bool pollEvent ( )
inline

Definition at line 99 of file Joystick.h.

+ Here is the call graph for this function:

Member Data Documentation

◆ axis

std::vector<int16_t> axis

Definition at line 48 of file Joystick.h.

◆ buttonsPressed

std::vector<bool> buttonsPressed

Definition at line 49 of file Joystick.h.

◆ name

std::string name

Definition at line 52 of file Joystick.h.

◆ numberOfAxis

int numberOfAxis

Definition at line 50 of file Joystick.h.

◆ numberOfButtons

int numberOfButtons

Definition at line 51 of file Joystick.h.


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