#include <GameController.h>
Public Member Functions | |
| unsigned | GetButtonCount () const |
| unsigned | GetSliderCount () const |
| unsigned | GetPOVCount () const |
| bool | IsButtonDown (const unsigned button) const |
| bool | IsButtonPressed (const unsigned button) const |
| bool | IsButtonReleased (const unsigned button) const |
Static Public Member Functions | |
| static const unsigned | SLIDER_NEG (const unsigned i) |
| static const unsigned | SLIDER_POS (const unsigned i) |
| static const unsigned | SLIDER_ABS (const unsigned i) |
| static const unsigned | POV_UP (const unsigned i) |
| static const unsigned | POV_RIGHT (const unsigned i) |
| static const unsigned | POV_DOWN (const unsigned i) |
| static const unsigned | POV_LEFT (const unsigned i) |
| static const unsigned | BUTTON (const unsigned i) |
Static Public Attributes | |
| static const unsigned | DIM_COUNT = 66 |
| static const unsigned | SLIDER_COUNT = 2 |
| static const unsigned | POV_COUNT = 4 |
| static const unsigned | BUTTON_COUNT = 32 |
| static const unsigned | X_NEG = 0 |
| static const unsigned | X_POS = 1 |
| static const unsigned | Y_NEG = 2 |
| static const unsigned | Y_POS = 3 |
| static const unsigned | Z_NEG = 4 |
| static const unsigned | Z_POS = 5 |
| static const unsigned | RX_NEG = 6 |
| static const unsigned | RX_POS = 7 |
| static const unsigned | RY_NEG = 8 |
| static const unsigned | RY_POS = 9 |
| static const unsigned | RZ_NEG = 10 |
| static const unsigned | RZ_POS = 11 |
Protected Member Functions | |
| errorcodes::ErrorCode | _CreateDeviceInterface (const DIDEVICEINSTANCE *device_instance) |
Protected Attributes | |
| friend | InputDeviceManager |
| errorcodes::ErrorCode xl7::directinput::devices::GameController::_CreateDeviceInterface | ( | const DIDEVICEINSTANCE * | device_instance | ) | [protected, virtual] |
Creates the DirectInput device interface.
Reimplemented from xl7::directinput::devices::InputDevice.
| static const unsigned xl7::directinput::devices::GameController::BUTTON | ( | const unsigned | i | ) | [inline, static] |
| unsigned xl7::directinput::devices::GameController::GetButtonCount | ( | ) | const [inline] |
Returns the number of buttons.
| unsigned xl7::directinput::devices::GameController::GetPOVCount | ( | ) | const [inline] |
Returns the number of POVs.
| unsigned xl7::directinput::devices::GameController::GetSliderCount | ( | ) | const [inline] |
Returns the number of sliders.
| bool xl7::directinput::devices::GameController::IsButtonDown | ( | const unsigned | button | ) | const |
Returns true, if the given button is pressed down.
| bool xl7::directinput::devices::GameController::IsButtonPressed | ( | const unsigned | button | ) | const |
Returns true, if the given button has been pressed since the last frame.
| bool xl7::directinput::devices::GameController::IsButtonReleased | ( | const unsigned | button | ) | const |
Returns true, if the given button has been released since the last frame.
| static const unsigned xl7::directinput::devices::GameController::POV_DOWN | ( | const unsigned | i | ) | [inline, static] |
| static const unsigned xl7::directinput::devices::GameController::POV_LEFT | ( | const unsigned | i | ) | [inline, static] |
| static const unsigned xl7::directinput::devices::GameController::POV_RIGHT | ( | const unsigned | i | ) | [inline, static] |
| static const unsigned xl7::directinput::devices::GameController::POV_UP | ( | const unsigned | i | ) | [inline, static] |
| static const unsigned xl7::directinput::devices::GameController::SLIDER_ABS | ( | const unsigned | i | ) | [inline, static] |
| static const unsigned xl7::directinput::devices::GameController::SLIDER_NEG | ( | const unsigned | i | ) | [inline, static] |
| static const unsigned xl7::directinput::devices::GameController::SLIDER_POS | ( | const unsigned | i | ) | [inline, static] |
const unsigned xl7::directinput::devices::GameController::BUTTON_COUNT = 32 [static] |
const unsigned xl7::directinput::devices::GameController::DIM_COUNT = 66 [static] |
friend xl7::directinput::devices::GameController::InputDeviceManager [protected] |
Reimplemented from xl7::directinput::devices::InputDevice.
const unsigned xl7::directinput::devices::GameController::POV_COUNT = 4 [static] |
const unsigned xl7::directinput::devices::GameController::RX_NEG = 6 [static] |
const unsigned xl7::directinput::devices::GameController::RX_POS = 7 [static] |
const unsigned xl7::directinput::devices::GameController::RY_NEG = 8 [static] |
const unsigned xl7::directinput::devices::GameController::RY_POS = 9 [static] |
const unsigned xl7::directinput::devices::GameController::RZ_NEG = 10 [static] |
const unsigned xl7::directinput::devices::GameController::RZ_POS = 11 [static] |
const unsigned xl7::directinput::devices::GameController::SLIDER_COUNT = 2 [static] |
const unsigned xl7::directinput::devices::GameController::X_NEG = 0 [static] |
const unsigned xl7::directinput::devices::GameController::X_POS = 1 [static] |
const unsigned xl7::directinput::devices::GameController::Y_NEG = 2 [static] |
const unsigned xl7::directinput::devices::GameController::Y_POS = 3 [static] |
const unsigned xl7::directinput::devices::GameController::Z_NEG = 4 [static] |
const unsigned xl7::directinput::devices::GameController::Z_POS = 5 [static] |
1.7.1