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

Definition at line 217 of file Input.hpp.

Member Function Documentation

◆ input_position()

virtual int2 iv::InputSource::input_position ( Input::Key  key,
int  device_id 
)
pure virtual

Position associated with device specified by key and device_id.

Implemented in iv::GlfmWindow, and iv::GlfwWindow.

◆ input_value()

virtual float iv::InputSource::input_value ( Input::Key  key,
int  device_id 
)
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()

virtual unsigned iv::InputSource::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: