Logo Search packages:      
Sourcecode: xboxdrv version File versions  Download package

Public Types | Public Member Functions | Protected Attributes | Private Member Functions | Private Attributes

Xbox360Driver Class Reference

Inheritance diagram for Xbox360Driver:
Inheritance graph
[legend]
Collaboration diagram for Xbox360Driver:
Collaboration graph
[legend]

List of all members.

Public Types

enum  {
  XBOX360_DPAD_UP, XBOX360_DPAD_DOWN, XBOX360_DPAD_LEFT, XBOX360_DPAD_RIGHT,
  XBOX360_BTN_A, XBOX360_BTN_B, XBOX360_BTN_X, XBOX360_BTN_Y,
  XBOX360_BTN_LB, XBOX360_BTN_RB, XBOX360_BTN_THUMB_L, XBOX360_BTN_THUMB_R,
  XBOX360_BTN_START, XBOX360_BTN_BACK, XBOX360_BTN_GUIDE, XBOX360_BTN_LENGTH
}
enum  {
  XBOX360_AXIS_X1, XBOX360_AXIS_Y1, XBOX360_AXIS_X2, XBOX360_AXIS_Y2,
  XBOX360_AXIS_LT, XBOX360_AXIS_RT, XBOX360_ABS_MAX
}
enum  { BTN_PORT_IN_LED, BTN_PORT_IN_MAX }
enum  { ABS_PORT_IN_RUMBLE_L, ABS_PORT_IN_RUMBLE_R, ABS_PORT_IN_MAX }

Public Member Functions

AbsPortIn * get_abs_port_in (int idx)
int get_abs_port_in_count ()
AbsPortOut * get_abs_port_out (int idx)
int get_abs_port_out_count ()
BtnPortIn * get_btn_port_in (int idx)
int get_btn_port_in_count ()
BtnPortOut * get_btn_port_out (int idx)
int get_btn_port_out_count ()
std::string get_name () const
RelPortIn * get_rel_port_in (int idx)
int get_rel_port_in_count ()
RelPortOut * get_rel_port_out (int idx)
int get_rel_port_out_count ()
void on_led_btn (BtnPortOut *btn)
void on_rumble_left_abs (AbsPortOut *abs)
void on_rumble_right_abs (AbsPortOut *abs)
void update (float delta)
 Xbox360Driver (const std::string &busid, const std::string &devid)
 Xbox360Driver (int idx)

Protected Attributes

std::vector< AbsPortIn * > abs_port_in
std::vector< AbsPortOut * > abs_port_out
std::vector< BtnPortIn * > btn_port_in
std::vector< BtnPortOut * > btn_port_out
std::vector< RelPortIn * > rel_port_in
std::vector< RelPortOut * > rel_port_out

Private Member Functions

void init ()
Xbox360Driveroperator= (const Xbox360Driver &)
void process_msg (const Xbox360Msg &msg)
 Xbox360Driver (const Xbox360Driver &)

Private Attributes

uint8_t rumble_l
uint8_t rumble_r
Xbox360UsbThreadthread

Detailed Description

Definition at line 32 of file xbox360_driver.hpp.


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

Generated by  Doxygen 1.6.0   Back to index