|
Aurore
A Switch-like interface for your app, on every screen
|
#include <aurore/test/headless_platform.hpp>
Public Member Functions | |
| short | getControllersConnectedCount () override |
| void | updateUnifiedControllerState (ControllerState *state) override |
| void | updateControllerState (ControllerState *state, int controller) override |
| bool | getKeyboardKeyState (AuroreKeyboardScancode key) override |
| void | updateTouchStates (std::vector< RawTouchState > *states) override |
| void | updateMouseStates (RawMouseState *state) override |
| void | sendRumble (unsigned short controller, unsigned short lowFreqMotor, unsigned short highFreqMotor) override |
| void | setButton (ControllerButton button, bool pressed) |
| void | setAxis (ControllerAxis axis, float value) |
| void | setKey (AuroreKeyboardScancode key, bool pressed) |
| void | setTouch (int fingerId, bool pressed, Point position) |
| void | setMouse (Point position, bool leftButton) |
| void | scroll (Point offset) |
Public Member Functions inherited from aurore::InputManager | |
| virtual | ~InputManager () |
| virtual void | runloopStart () |
| virtual void | drawCursor (NVGcontext *vg) |
| virtual void | setPointerLock (bool lock) |
| Event< bool > * | getMouseCusorEntered () |
| Event< Point > * | getMouseCusorOffsetChanged () |
| Event< Point > * | getMouseScrollOffsetChanged () |
| Event< SensorEvent > * | getControllerSensorStateChanged () |
| Event< KeyState > * | getKeyboardKeyStateChanged () |
Additional Inherited Members | |
Static Public Member Functions inherited from aurore::InputManager | |
| static TouchState | computeTouchState (RawTouchState currentTouch, TouchState lastFrameState) |
| static MouseState | computeMouseState (RawMouseState currentTouch, MouseState lastFrameState) |
| static ControllerButton | mapControllerState (ControllerButton button) |
|
inlineoverridevirtual |
Implements aurore::InputManager.
|
overridevirtual |
Implements aurore::InputManager.
| void aurore::HeadlessInputManager::scroll | ( | Point | offset | ) |
|
inlineoverridevirtual |
Calls to update gamepad's rumble state.
Implements aurore::InputManager.
| void aurore::HeadlessInputManager::setAxis | ( | ControllerAxis | axis, |
| float | value | ||
| ) |
| void aurore::HeadlessInputManager::setButton | ( | ControllerButton | button, |
| bool | pressed | ||
| ) |
| void aurore::HeadlessInputManager::setKey | ( | AuroreKeyboardScancode | key, |
| bool | pressed | ||
| ) |
| void aurore::HeadlessInputManager::setMouse | ( | Point | position, |
| bool | leftButton | ||
| ) |
| void aurore::HeadlessInputManager::setTouch | ( | int | fingerId, |
| bool | pressed, | ||
| Point | position | ||
| ) |
|
overridevirtual |
Called once every frame to fill the given ControllerState struct with the controller state.
Implements aurore::InputManager.
|
overridevirtual |
Called once every frame to fill the given RawTouchState struct with the raw touch data.
Implements aurore::InputManager.
|
overridevirtual |
Called once every frame to fill the given RawTouchState struct with the raw touch data.
Implements aurore::InputManager.
|
overridevirtual |
Implements aurore::InputManager.