|
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) | |
Protected Member Functions inherited from foray::osi::InputBase | |
| InputBase ()=default | |
| InputBase (InputDevice *device, int32_t id, std::string_view name) | |
Protected Attributes | |
| EButton | mButtonId = {} |
Protected Attributes inherited from foray::osi::InputBase | |
| 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 |