gmsh-TingyuanDoc  0.1
An Open-Source Timing-driven Analytical Mixed-size FPGA Placer
GamePad Class Reference

#include <GamePad.h>

Public Member Functions

 GamePad ()
 
 ~GamePad ()
 
bool toggle (const int _nbut)
 
int read_event ()
 
void affiche ()
 

Public Attributes

bool active
 
bool toggle_status [GP_BUTTONS]
 
bool event_read
 
double frequency
 
double axe [GP_AXES]
 
bool button [GP_BUTTONS]
 
int button_map [10]
 
int axe_map [8]
 

Private Attributes

char name [256]
 
int axes
 
int buttons
 

Detailed Description

Definition at line 27 of file GamePad.h.

Constructor & Destructor Documentation

◆ GamePad()

GamePad::GamePad ( )

Definition at line 63 of file GamePad.cpp.

◆ ~GamePad()

GamePad::~GamePad ( )

Definition at line 142 of file GamePad.cpp.

Member Function Documentation

◆ affiche()

void GamePad::affiche ( )

Definition at line 231 of file GamePad.cpp.

◆ read_event()

int GamePad::read_event ( )

Definition at line 159 of file GamePad.cpp.

◆ toggle()

bool GamePad::toggle ( const int  _nbut)

Definition at line 151 of file GamePad.cpp.

Member Data Documentation

◆ active

bool GamePad::active

Definition at line 29 of file GamePad.h.

Referenced by GamePad(), and ~GamePad().

◆ axe

double GamePad::axe[GP_AXES]

Definition at line 35 of file GamePad.h.

Referenced by affiche(), GamePad(), and read_event().

◆ axe_map

int GamePad::axe_map[8]

Definition at line 41 of file GamePad.h.

Referenced by GamePad().

◆ axes

int GamePad::axes
private

Definition at line 59 of file GamePad.h.

Referenced by GamePad().

◆ button

bool GamePad::button[GP_BUTTONS]

Definition at line 36 of file GamePad.h.

Referenced by affiche(), GamePad(), and read_event().

◆ button_map

int GamePad::button_map[10]

Definition at line 40 of file GamePad.h.

Referenced by GamePad().

◆ buttons

int GamePad::buttons
private

Definition at line 60 of file GamePad.h.

Referenced by GamePad(), and read_event().

◆ event_read

bool GamePad::event_read

Definition at line 31 of file GamePad.h.

◆ frequency

double GamePad::frequency

Definition at line 32 of file GamePad.h.

Referenced by GamePad().

◆ name

char GamePad::name[256]
private

Definition at line 44 of file GamePad.h.

Referenced by GamePad().

◆ toggle_status

bool GamePad::toggle_status[GP_BUTTONS]

Definition at line 30 of file GamePad.h.

Referenced by GamePad(), read_event(), and toggle().


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