Definition at line 17 of file InputImpl.hpp.
Public Types | |
using | FingerID = int |
using | CharacterListener = std::unique_ptr< CharacterListenerInterface > |
Public Member Functions | |
void | Update (GLFWwindow *window) |
void | OnScrollEvent (glm::vec2 offset) |
void | OnCharacterTyped (wchar_t character) |
void | BindCharacterListener (CharacterListenerImpl *) |
void | UnBindCharacterListener (CharacterListenerImpl *) |
bool | IsKeyPressed (int key) override |
Whether a keyboard button is pressed or not. More... | |
bool | IsKeyReleased (int key) override |
Whether a keyboard button is released or not. More... | |
bool | IsKeyHold (int key) override |
Whether a keyboard button is down or not. More... | |
bool | IsMousePressed (int key) override |
Whether a mouse button is pressed or not. More... | |
bool | IsMouseReleased (int key) override |
Whether a mouse button is released or not. More... | |
glm::vec2 | mouse () const override |
The mouse position. More... | |
std::map< FingerID, Touch > & | touches () override |
The touch states. More... | |
bool | IsMouseHeld (int key) override |
Whether a mouse button is down or not. More... | |
bool | IsCursorHeld () override |
Whether the cursor is down or not. More... | |
bool | IsCursorPressed () override |
Whether the cursor is pressed or not. More... | |
bool | IsCursorReleased () override |
Whether the cursor is released or not. More... | |
glm::vec2 | cursor () const override |
The cursor position. More... | |
glm::vec2 | scroll_offset () const override |
The mouse/touchpad scrolling offset since the last frame. More... | |
CharacterListener | MakeCharacterListener () override |
|
inherited |
void smk::InputImpl::BindCharacterListener | ( | InputImpl::CharacterListenerImpl * | listener | ) |
Definition at line 178 of file InputImpl.cpp.
|
overridevirtual |
The cursor position.
Implements smk::Input.
Definition at line 144 of file InputImpl.cpp.
|
overridevirtual |
Whether the cursor is down or not.
Implements smk::Input.
Definition at line 132 of file InputImpl.cpp.
|
overridevirtual |
Whether the cursor is pressed or not.
Implements smk::Input.
Definition at line 136 of file InputImpl.cpp.
|
overridevirtual |
Whether the cursor is released or not.
Implements smk::Input.
Definition at line 140 of file InputImpl.cpp.
|
overridevirtual |
Whether a keyboard button is down or not.
key | The keyboard button. |
Implements smk::Input.
Definition at line 104 of file InputImpl.cpp.
|
overridevirtual |
Whether a keyboard button is pressed or not.
key | The keyboard button. |
Implements smk::Input.
Definition at line 94 of file InputImpl.cpp.
|
overridevirtual |
Whether a keyboard button is released or not.
key | The keyboard button. |
Implements smk::Input.
Definition at line 99 of file InputImpl.cpp.
|
overridevirtual |
Whether a mouse button is down or not.
key | The mouse button. |
Implements smk::Input.
Definition at line 127 of file InputImpl.cpp.
|
overridevirtual |
Whether a mouse button is pressed or not.
key | The mouse button. |
Implements smk::Input.
Definition at line 109 of file InputImpl.cpp.
|
overridevirtual |
Whether a mouse button is released or not.
key | The mouse button. |
Implements smk::Input.
Definition at line 114 of file InputImpl.cpp.
|
overridevirtual |
Implements smk::Input.
Definition at line 194 of file InputImpl.cpp.
|
overridevirtual |
The mouse position.
Implements smk::Input.
Definition at line 119 of file InputImpl.cpp.
void smk::InputImpl::OnCharacterTyped | ( | wchar_t | character | ) |
Definition at line 188 of file InputImpl.cpp.
void smk::InputImpl::OnScrollEvent | ( | glm::vec2 | offset | ) |
Definition at line 90 of file InputImpl.cpp.
|
overridevirtual |
The mouse/touchpad scrolling offset since the last frame.
Implements smk::Input.
Definition at line 147 of file InputImpl.cpp.
|
overridevirtual |
The touch states.
Implements smk::Input.
Definition at line 123 of file InputImpl.cpp.
void smk::InputImpl::UnBindCharacterListener | ( | InputImpl::CharacterListenerImpl * | listener | ) |
Definition at line 183 of file InputImpl.cpp.
void smk::InputImpl::Update | ( | GLFWwindow * | window | ) |
Definition at line 22 of file InputImpl.cpp.