#include <Input.hpp>
|
| struct | Button |
| | The information needed to identify a button. More...
|
| |
Hold information about the hymn's inputs.
- Todo:
- Android
◆ CheckButton()
| bool Input::CheckButton |
( |
int |
index | ) |
const |
Check if a button was activated this frame.
- Parameters
-
| index | The index of the button in the buttons array. |
- Returns
- Whether the button was activated this frame.
◆ GetInstance()
| Input & Input::GetInstance |
( |
| ) |
|
|
static |
Get the input singleton instance.
- Returns
- The input instance.
◆ Load()
| void Input::Load |
( |
const Json::Value & |
buttonsNode | ) |
|
Load buttons from JSON node.
- Parameters
-
| buttonsNode | The JSON value to load. |
◆ Save()
| Json::Value Input::Save |
( |
| ) |
const |
Save the buttons to a JSON value.
- Returns
- The saved JSON value.
◆ SetWindow()
Set the window to check for input against.
- Parameters
-
| window | The window to get input from. |
◆ buttons
| std::vector<Button*> Input::buttons |
The documentation for this class was generated from the following files: