#include <input.hpp>
◆ KeyState
Enumerator |
---|
RELEASED | |
PRESSED | |
REPEATED | |
NONE | |
◆ Input()
Input::Input |
( |
GLFWwindow * |
glfwWindow | ) |
|
Construct a new Input object.
- Parameters
-
glfwWindow | The GLFWwindow object |
◆ ~Input()
Destroy the Input object.
◆ getCursorPos()
void Input::getCursorPos |
( |
double & |
xpos, |
|
|
double & |
ypos |
|
) |
| |
Get the cursor position.
- Parameters
-
xpos | The x position of the cursor |
ypos | The y position of the cursor |
◆ getKeyState()
Get the key state.
- Parameters
-
key | The key to get the state of |
- Returns
- KeyState The state of the key
◆ getMouseButtonState()
Get the mouse button state.
- Parameters
-
button | The button to get the state of |
- Returns
- KeyState The state of the button
◆ getScroll()
void Input::getScroll |
( |
double & |
xoffset, |
|
|
double & |
yoffset |
|
) |
| |
Get the scroll values.
- Parameters
-
xoffset | The x offset of the scroll |
yoffset | The y offset of the scroll |
◆ isCursorCaptured()
bool Input::isCursorCaptured |
( |
| ) |
|
|
inline |
The documentation for this class was generated from the following files: