Public Types | Public Member Functions | Public Attributes

gamepad::dpad_map_t Struct Reference

a dpad_map_t describes how to map from low-level SourceDevice events (buttons or potentiometers) into dpad events. More...

#include <gamepad-map.h>

List of all members.

Public Types

enum  eType {
  eType_Button = 1,
  eType_2Pot = 2,
  eType_4Pot = 3,
  eType_Invalid = 0
}
enum  eIndex {
  eLeft = 0,
  eUp = 1,
  eRight = 2,
  eDown = 3,
  eBad = 255
}

Public Member Functions

 dpad_map_t (void) throw ()
void clear (void) throw ()
void dump (IN const char *title) const throw ()
bool isValid (void) const throw ()

Public Attributes

eType type
byte_t index [4]
 button/pot indices for 4 directions
bool flipX
 flip x-axis value?
bool flipY
 flip y-axis value?

Detailed Description

a dpad_map_t describes how to map from low-level SourceDevice events (buttons or potentiometers) into dpad events.

Definition at line 153 of file gamepad-map.h.


Member Enumeration Documentation

Enumerator:
eType_Button 

dpad uses buttons for events

eType_2Pot 

dpad uses 2 potentiometers

eType_4Pot 

dpad uses 4 potentiometers

eType_Invalid 

Definition at line 155 of file gamepad-map.h.

Enumerator:
eLeft 
eUp 
eRight 
eDown 
eBad 

Definition at line 161 of file gamepad-map.h.


Constructor & Destructor Documentation

gamepad::dpad_map_t::dpad_map_t ( void   )  throw () [inline]

Definition at line 172 of file gamepad-map.h.


Member Function Documentation

void gamepad::dpad_map_t::clear ( void   )  throw () [inline]

Definition at line 175 of file gamepad-map.h.

void gamepad::dpad_map_t::dump ( IN const char *  title  )  const throw () [inline]

Definition at line 182 of file gamepad-map.h.

bool gamepad::dpad_map_t::isValid ( void   )  const throw () [inline]

Definition at line 199 of file gamepad-map.h.


Member Data Documentation

Definition at line 212 of file gamepad-map.h.

button/pot indices for 4 directions

Definition at line 213 of file gamepad-map.h.

flip x-axis value?

Definition at line 214 of file gamepad-map.h.

flip y-axis value?

Definition at line 215 of file gamepad-map.h.


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