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
 

Member Function Documentation

◆ close()

void close ( )
inline

◆ executeEffect()

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

◆ open()

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

◆ opened()

bool opened ( ) const
inline

◆ pollEvent()

bool pollEvent ( )
inline

Member Data Documentation

◆ axis

std::vector<int16_t> axis

◆ buttonsPressed

std::vector<bool> buttonsPressed

◆ name

std::string name

◆ numberOfAxis

int numberOfAxis

◆ numberOfButtons

int numberOfButtons

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