Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

Gamepad.h

Go to the documentation of this file.
00001 //-*-c++-*-
00002 #ifndef INCLUDED_Gamepad_h
00003 #define INCLUDED_Gamepad_h
00004 
00005 #define IS_GAMEPAD_SID(i) ((i) >= GamepadSrcID::gamepadXButtonSrcID && (i) <= GamepadSrcID::gamepadRightBumperSrcID)
00006 
00007 class EventBase;
00008 
00009 //Gamepad SourceIDs for events generated by gamepadEGID
00010 namespace GamepadSrcID {
00011   //! holds source ID types for gamepad events
00012   enum GamepadSourceID_t {
00013     gamepadXButtonSrcID = 1000, //!< The x button
00014     gamepadYButtonSrcID, //!< The y button
00015     gamepadAButtonSrcID, //!< The a button
00016     gamepadBButtonSrcID, //!< The b button
00017     gamepadStartButtonSrcID, //!< The start button
00018     gamepadSelectButtonSrcID, //!< The select button
00019     gamepadLeftJoyXSrcID, //!< The left joystick
00020     gamepadLeftJoyYSrcID, //!< The left joystick
00021     gamepadRightJoyXSrcID, //!< The right joystick
00022     gamepadRightJoyYSrcID, //!< The right joystick
00023     gamepadDPadXSrcID, //!< The D-pad
00024     gamepadDPadYSrcID, //!< The D-pad
00025     gamepadLeftBumperSrcID, //!< Left bumper
00026     gamepadRightBumperSrcID //!< Right bumper
00027   };
00028 }
00029 
00030 #endif

Tekkotsu v5.1CVS
Generated Mon May 9 04:58:41 2016 by Doxygen 1.6.3