Foray Library
rapid prototyping framework for crossplatform development of vulkan hardware ray tracing applications
|
Represents a single input with a state represented by a boolean value. More...
#include <foray_input.hpp>
Public Member Functions | |
virtual bool | State () const =0 |
Button id of the input. | |
Protected Member Functions | |
InputBinary () | |
InputBinary (InputDevice *device, int32_t id, std::string_view name, EButton button) | |
![]() | |
InputBase ()=default | |
InputBase (InputDevice *device, int32_t id, std::string_view name) | |
Protected Attributes | |
EButton | mButtonId = {} |
![]() | |
InputDevice * | mDevice = {} |
Device providing this input. | |
int32_t | mId = {} |
std::string | mName = {} |
Represents a single input with a state represented by a boolean value.
|
inlineprotected |
|
inlineprotected |
|
pure virtual |
Button id of the input.
Fetches the inputs current state
Implemented in foray::osi::InputDevice::ButtonJoystick, foray::osi::InputDevice::ButtonMouse, and foray::osi::InputDevice::ButtonKeyboard.
|
protected |