GAMS  1.4.0
gams::utility::Joystick Class Reference

#include <LinuxJoystick.h>

Public Member Functions

 Joystick ()
 
 Joystick (const std::string &handle)
 
 ~Joystick ()
 
bool close_handle (void)
 
bool get (JoystickEvent &event)
 
bool is_axis (const JoystickEvent &event) const
 
bool is_button (const JoystickEvent &event) const
 
bool is_init (const JoystickEvent &event) const
 
bool is_rotate (const JoystickEvent &event) const
 
bool is_x_move (const JoystickEvent &event) const
 
bool is_y_move (const JoystickEvent &event) const
 
bool is_z_move (const JoystickEvent &event) const
 
bool open_handle (const std::string &handle)
 
double to_double (const JoystickEvent &event) const
 

Private Attributes

FILE * file_ = 0
 

Detailed Description

Definition at line 26 of file LinuxJoystick.h.

Constructor & Destructor Documentation

◆ Joystick() [1/2]

gams::utility::Joystick::Joystick ( const std::string &  handle)
inline

Definition at line 90 of file LinuxJoystick.h.

◆ Joystick() [2/2]

gams::utility::Joystick::Joystick ( )
inline

Definition at line 99 of file LinuxJoystick.h.

◆ ~Joystick()

gams::utility::Joystick::~Joystick ( )
inline

Definition at line 105 of file LinuxJoystick.h.

Member Function Documentation

◆ close_handle()

bool gams::utility::Joystick::close_handle ( void  )
inline

Definition at line 35 of file LinuxJoystick.h.

◆ get()

bool gams::utility::Joystick::get ( JoystickEvent event)
inline

Definition at line 110 of file LinuxJoystick.h.

◆ is_axis()

bool gams::utility::Joystick::is_axis ( const JoystickEvent event) const
inline

Definition at line 128 of file LinuxJoystick.h.

◆ is_button()

bool gams::utility::Joystick::is_button ( const JoystickEvent event) const
inline

Definition at line 134 of file LinuxJoystick.h.

◆ is_init()

bool gams::utility::Joystick::is_init ( const JoystickEvent event) const
inline

Definition at line 160 of file LinuxJoystick.h.

◆ is_rotate()

bool gams::utility::Joystick::is_rotate ( const JoystickEvent event) const
inline

Definition at line 150 of file LinuxJoystick.h.

◆ is_x_move()

bool gams::utility::Joystick::is_x_move ( const JoystickEvent event) const
inline

Definition at line 140 of file LinuxJoystick.h.

◆ is_y_move()

bool gams::utility::Joystick::is_y_move ( const JoystickEvent event) const
inline

Definition at line 145 of file LinuxJoystick.h.

◆ is_z_move()

bool gams::utility::Joystick::is_z_move ( const JoystickEvent event) const
inline

Definition at line 155 of file LinuxJoystick.h.

◆ open_handle()

bool gams::utility::Joystick::open_handle ( const std::string &  handle)
inline

Definition at line 63 of file LinuxJoystick.h.

◆ to_double()

double gams::utility::Joystick::to_double ( const JoystickEvent event) const
inline

Definition at line 165 of file LinuxJoystick.h.

Member Data Documentation

◆ file_

FILE* gams::utility::Joystick::file_ = 0
private

Definition at line 31 of file LinuxJoystick.h.


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