|
Public Types |
| enum | tKey {
eKey_Left = 0,
eKey_Right,
eKey_Up,
eKey_Down,
eLastKey = SGX_ENUM_PADDING
} |
| enum | tControl {
eButton0 = 0,
eButton1,
eButton2,
eButton3,
eButton4,
eButton5,
eButton6,
eButton7,
eButton8,
eButton9,
eButton10,
eButton11,
eButton12,
eButton13,
eButton14,
eButton15,
eFirstStick,
eStick0x,
eStick0y,
eStick1x,
eStick1y,
eStick2x,
eStick2y,
eStick3x,
eStick3y,
eLastControl = SGX_ENUM_PADDING
} |
| enum | tMouseButton { eMouseButtonLeft = 0,
eMouseButtonRight,
eMouseButtonMiddle,
eMouseButtonLast = SGX_ENUM_PADDING
} |
| enum | tController {
ePhysical0 = 0,
ePhysical1,
ePhysical2,
ePhysical3,
eFirst,
eSecond,
eThird,
eFourth,
eAllLogical,
eGUIForwards,
eGUIBackwards,
eGUISelect,
eLastController = SGX_ENUM_PADDING
} |
Public Member Functions |
| virtual void | initializeGeneric () |
| virtual void | initialize () |
| virtual void | createMapping () |
| virtual tUINT32 | getNumControllers () |
| virtual tUINT32 | getMaxControllers () |
virtual
CSGXInputManager::CControllerJoypad * | createJoypad (int idx) |
virtual
CSGXInputManager::CControllerKeyboard * | createKeyboard () |
virtual
CSGXInputManager::CControllerMouse * | createMouse () |
| virtual void | update (const tREAL32 telaps) |
| virtual void | applyKeyboardKeyUp (const tKey &key) |
| virtual void | applyKeyboardKeyDown (const tKey &key) |
| virtual void | applyKeyboardPressed (const tKey &key) |
| virtual void | applyKeyboardreleased (const tKey &key) |
| virtual void | applyMouseButton (tMouseButton button, tBOOL bState) |
| virtual void | applyMousePosition (const tINT32 x, const tINT32 y) |
| virtual tBOOL | isKeyboardKeyDown (const tKey &key) |
| virtual tBOOL | isKeyboardKeyUp (const tKey &key) |
| virtual tBOOL | isKeyboardKeyPressed (const tKey &key) |
| virtual tBOOL | isKeyboardKeyreleased (const tKey &key) |
| virtual tBOOL | isMouseButtonDown (const tMouseButton &button) |
| virtual tBOOL | isMouseButtonUp (const tMouseButton &button) |
| virtual tBOOL | isMouseButtonPressed (const tMouseButton &button) |
| virtual tBOOL | isMouseButtonreleased (const tMouseButton &button) |
| virtual tINT32 | getMouseX () |
| virtual tINT32 | getMouseY () |
| virtual const CControllerJoypad * | getController (tController controller) |
| virtual const CControlButton & | getControlButton (tController controller, tControl button) |
| virtual const CControlStick & | getControlStick (tController controller, tControl stick) |
Static Public Member Functions |
| static CSGXInputManager * | create () |
| static CSGXInputManager * | get () |
Protected Attributes |
| struct { |
| tBOOL bState |
| tREAL32 fState |
| tBOOL bPressed |
| tBOOL breleased |
| } | ButtonState |
| CControllerJoypad ** | m_pDeviceController |
| CControllerKeyboard * | m_pDeviceKeyboard |
| CControllerMouse * | m_pDeviceMouse |
| tUINT32 * | m_Mapping |
| CControllerJoypad ** | m_pController |
| CControllerKeyboard | m_Keyboard |
| CControllerMouse | m_Mouse |
Static Protected Attributes |
| static CSGXInputManager * | m_pSingleton |
Classes |
| class | CControlButton |
| class | CControllerJoypad |
| class | CControllerKeyboard |
| class | CControllerMouse |
| class | CControlStick |
| class | CKeyboardKey |