iv::InputSource Class Referenceabstract
#include <Input.hpp>
Public Member Functions | |
virtual int2 | input_position (Input::Key key, int device_id)=0 |
virtual float | input_value (Input::Key key, int device_id)=0 |
virtual unsigned | input_character ()=0 |
Detailed Description
Member Function Documentation
◆ input_position()
|
pure virtual |
Position associated with device specified by key and device_id.
Implemented in iv::GlfmWindow, and iv::GlfwWindow.
◆ input_value()
|
pure virtual |
Value associated with given key, typically this are analog triggers and even joysticks on gamepads.
Implemented in iv::GlfmWindow, and iv::GlfwWindow.
◆ input_character()
|
pure virtual |
When InputSource emmits Input::Key::Character trigger event, this will return the codepoint of the character (until processing finishes).
Implemented in iv::GlfmWindow, and iv::GlfwWindow.
The documentation for this class was generated from the following file:
- ivorium_core/Basics/Input.hpp