TRC Library for FRC (2011) 2011
TRC Library Code Project

C:/Users/Michael/Frc/2011/code/trclib/TrcJoystick.h File Reference

Go to the source code of this file.

Classes

class  ButtonNotify
class  TrcJoystick

Defines

#define _TRCJOYSTICK_H
#define MOD_ID   MOD_JOYSTICK
#define MOD_NAME   "TrcJoystick"
#define DEADBAND_INPUT_THRESHOLD   0.10
#define DEADBAND_INPUT(n)   DEADBAND(n, DEADBAND_INPUT_THRESHOLD)
#define Btn(n)   (1 << (n))
#define Logitech_Trigger   Btn(0)
#define Logitech_Btn2   Btn(1)
#define Logitech_Btn3   Btn(2)
#define Logitech_Btn4   Btn(3)
#define Logitech_Btn5   Btn(4)
#define Logitech_Btn6   Btn(5)
#define Logitech_Btn7   Btn(6)
#define Logitech_Btn8   Btn(7)
#define Logitech_Btn9   Btn(8)
#define Logitech_Btn10   Btn(9)
#define Logitech_Btn11   Btn(10)
#define Logitech_Btn12   Btn(11)
#define SideWinder_Trigger   Btn(0)
#define SideWinder_Btn2   Btn(1)
#define SideWinder_Btn3   Btn(2)
#define SideWinder_Btn4   Btn(3)
#define SideWinder_BtnA   Btn(4)
#define SideWinder_BtnB   Btn(5)
#define SideWinder_BtnC   Btn(6)
#define SideWinder_BtnD   Btn(7)
#define SideWinder_Btn9   Btn(8)
#define Xbox_BtnA   Btn(0)
#define Xbox_BtnB   Btn(1)
#define Xbox_BtnX   Btn(2)
#define Xbox_BtnY   Btn(3)
#define Xbox_LB   Btn(4)
#define Xbox_RB   Btn(5)
#define Xbox_Back   Btn(6)
#define Xbox_Start   Btn(7)

Define Documentation

#define _TRCJOYSTICK_H

Definition at line 17 of file TrcJoystick.h.

#define Btn (   n)    (1 << (n))

Definition at line 38 of file TrcJoystick.h.

#define DEADBAND_INPUT (   n)    DEADBAND(n, DEADBAND_INPUT_THRESHOLD)

Definition at line 34 of file TrcJoystick.h.

#define DEADBAND_INPUT_THRESHOLD   0.10

Definition at line 32 of file TrcJoystick.h.

#define Logitech_Btn10   Btn(9)

Definition at line 52 of file TrcJoystick.h.

#define Logitech_Btn11   Btn(10)

Definition at line 53 of file TrcJoystick.h.

#define Logitech_Btn12   Btn(11)

Definition at line 54 of file TrcJoystick.h.

#define Logitech_Btn2   Btn(1)

Definition at line 44 of file TrcJoystick.h.

#define Logitech_Btn3   Btn(2)

Definition at line 45 of file TrcJoystick.h.

#define Logitech_Btn4   Btn(3)

Definition at line 46 of file TrcJoystick.h.

#define Logitech_Btn5   Btn(4)

Definition at line 47 of file TrcJoystick.h.

#define Logitech_Btn6   Btn(5)

Definition at line 48 of file TrcJoystick.h.

#define Logitech_Btn7   Btn(6)

Definition at line 49 of file TrcJoystick.h.

#define Logitech_Btn8   Btn(7)

Definition at line 50 of file TrcJoystick.h.

#define Logitech_Btn9   Btn(8)

Definition at line 51 of file TrcJoystick.h.

#define Logitech_Trigger   Btn(0)

Definition at line 43 of file TrcJoystick.h.

#define MOD_ID   MOD_JOYSTICK

Definition at line 22 of file TrcJoystick.h.

#define MOD_NAME   "TrcJoystick"

Definition at line 26 of file TrcJoystick.h.

#define SideWinder_Btn2   Btn(1)

Definition at line 60 of file TrcJoystick.h.

#define SideWinder_Btn3   Btn(2)

Definition at line 61 of file TrcJoystick.h.

#define SideWinder_Btn4   Btn(3)

Definition at line 62 of file TrcJoystick.h.

#define SideWinder_Btn9   Btn(8)

Definition at line 67 of file TrcJoystick.h.

#define SideWinder_BtnA   Btn(4)

Definition at line 63 of file TrcJoystick.h.

#define SideWinder_BtnB   Btn(5)

Definition at line 64 of file TrcJoystick.h.

#define SideWinder_BtnC   Btn(6)

Definition at line 65 of file TrcJoystick.h.

#define SideWinder_BtnD   Btn(7)

Definition at line 66 of file TrcJoystick.h.

#define SideWinder_Trigger   Btn(0)

Definition at line 59 of file TrcJoystick.h.

#define Xbox_Back   Btn(6)

Definition at line 78 of file TrcJoystick.h.

#define Xbox_BtnA   Btn(0)

Definition at line 72 of file TrcJoystick.h.

#define Xbox_BtnB   Btn(1)

Definition at line 73 of file TrcJoystick.h.

#define Xbox_BtnX   Btn(2)

Definition at line 74 of file TrcJoystick.h.

#define Xbox_BtnY   Btn(3)

Definition at line 75 of file TrcJoystick.h.

#define Xbox_LB   Btn(4)

Definition at line 76 of file TrcJoystick.h.

#define Xbox_RB   Btn(5)

Definition at line 77 of file TrcJoystick.h.

#define Xbox_Start   Btn(7)

Definition at line 79 of file TrcJoystick.h.

 All Classes Files Functions Variables Defines