|
SPARK
0.1.0
A general purpose game engine written in C++.
|
A static class giving access to real-time input. More...
#include <Input.h>
Static Public Member Functions | |
| static bool | IsKeyPressed (base::KeyCode key) |
| Gets the state of a key. | |
| static bool | IsMousePressed (base::MouseCode button=base::MouseCodes::Left) |
| Gets the state of a mouse button. | |
| static math::Vector2< float > | MousePosition () |
| Gets the position of the mouse relative to the window. | |
Static Public Attributes | |
| static std::unordered_map< base::KeyCode, patterns::Signal<> > | keyPressedEvents = globals::generate_key_map() |
| A map of signals that are triggered when a key is pressed. | |
| static std::unordered_map< base::KeyCode, patterns::Signal<> > | keyReleasedEvents = globals::generate_key_map() |
| A map of signals that are triggered when a key is released. | |
| static std::unordered_map< base::MouseCode, patterns::Signal<> > | mousePressedEvents = globals::generate_mouse_map() |
| A map of signals that are triggered when a mouse button is pressed. | |
| static std::unordered_map< base::MouseCode, patterns::Signal<> > | mouseReleasedEvents = globals::generate_mouse_map() |
| A map of signals that are triggered when a mouse button is released. | |
| static patterns::Signal | mouseMovedEvent |
| A signal that is triggered when the mouse is moved. | |
A static class giving access to real-time input.
|
static |
Gets the state of a key.
| key | The key to check. |
|
static |
Gets the state of a mouse button.
| button | The button to check, defaults to left mouse button. |
|
static |
Gets the position of the mouse relative to the window.