|
Night Byte
|
#include <Input.hpp>
Public Types | |
| enum | device { NONE = -1, KEYBOARD = 0, MOUSE = 1, CONTROLLER = 2, OTHER = 3 } |
Public Attributes | |
| enum Input::device | device |
| float | x |
| float | y |
| InputAction | keyMap |
A structure to represent an input from the Engine.
| enum Input::device |
Device the input was received from
| Enumerator | |
|---|---|
| NONE | Device -1: No Input |
| KEYBOARD | Device 0: Keyboard |
| MOUSE | Device 1: Mouse |
| CONTROLLER | Device 2: Controller |
| OTHER | Device 3: Other (e.g. the console) |
| InputAction Input::keyMap |
InputAction struct containing code and action
| float Input::x |
X coordinate within the window
| float Input::y |
Y coordinate within the window