#include <Mouse.h>
Public Member Functions | |
| unsigned | GetButtonCount () const |
| bool | IsButtonDown (const unsigned button) const |
| bool | IsButtonPressed (const unsigned button) const |
| bool | IsButtonReleased (const unsigned button) const |
| bool | HasMoved () const |
Static Public Member Functions | |
| static const unsigned | BUTTON (const unsigned i) |
Static Public Attributes | |
| static const unsigned | DIM_COUNT = 14 |
| static const unsigned | BUTTON_COUNT = 8 |
| 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 |
Protected Member Functions | |
| errorcodes::ErrorCode | _CreateDeviceInterface (const DIDEVICEINSTANCE *device_instance) |
Protected Attributes | |
| friend | InputDeviceManager |
| errorcodes::ErrorCode xl7::directinput::devices::Mouse::_CreateDeviceInterface | ( | const DIDEVICEINSTANCE * | device_instance | ) | [protected, virtual] |
Creates the DirectInput device interface.
Reimplemented from xl7::directinput::devices::InputDevice.
| static const unsigned xl7::directinput::devices::Mouse::BUTTON | ( | const unsigned | i | ) | [inline, static] |
| unsigned xl7::directinput::devices::Mouse::GetButtonCount | ( | ) | const [inline] |
Returns the number of buttons.
| bool xl7::directinput::devices::Mouse::HasMoved | ( | ) | const |
Returns true, if the mouse position has changed.
| bool xl7::directinput::devices::Mouse::IsButtonDown | ( | const unsigned | button | ) | const |
Returns true, if the given button is pressed down.
| bool xl7::directinput::devices::Mouse::IsButtonPressed | ( | const unsigned | button | ) | const |
Returns true, if the given button has been pressed since the last frame.
| bool xl7::directinput::devices::Mouse::IsButtonReleased | ( | const unsigned | button | ) | const |
Returns true, if the given button has been released since the last frame.
const unsigned xl7::directinput::devices::Mouse::BUTTON_COUNT = 8 [static] |
const unsigned xl7::directinput::devices::Mouse::DIM_COUNT = 14 [static] |
friend xl7::directinput::devices::Mouse::InputDeviceManager [protected] |
Reimplemented from xl7::directinput::devices::InputDevice.
const unsigned xl7::directinput::devices::Mouse::X_NEG = 0 [static] |
const unsigned xl7::directinput::devices::Mouse::X_POS = 1 [static] |
const unsigned xl7::directinput::devices::Mouse::Y_NEG = 2 [static] |
const unsigned xl7::directinput::devices::Mouse::Y_POS = 3 [static] |
const unsigned xl7::directinput::devices::Mouse::Z_NEG = 4 [static] |
const unsigned xl7::directinput::devices::Mouse::Z_POS = 5 [static] |
1.7.1