Foray Library
rapid prototyping framework for crossplatform development of vulkan hardware ray tracing applications
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
foray::osi::InputAnalogue Class Referenceabstract

Represents a single input with a state represented by a signed 16bit integer. More...

#include <foray_input.hpp>

Inheritance diagram for foray::osi::InputAnalogue:
foray::osi::InputBase foray::osi::InputDevice::AxisJoystick

Public Member Functions

virtual int16_t State () const =0
 Axis id of the input.
 

Protected Member Functions

 InputAnalogue ()
 
 InputAnalogue (InputDevice *device, int32_t id, std::string_view name, EAxis axis)
 
- Protected Member Functions inherited from foray::osi::InputBase
 InputBase ()=default
 
 InputBase (InputDevice *device, int32_t id, std::string_view name)
 

Protected Attributes

EAxis mAxisId = {}
 
- Protected Attributes inherited from foray::osi::InputBase
InputDevicemDevice = {}
 Device providing this input.
 
int32_t mId = {}
 
std::string mName = {}
 

Detailed Description

Represents a single input with a state represented by a signed 16bit integer.

Constructor & Destructor Documentation

◆ InputAnalogue() [1/2]

foray::osi::InputAnalogue::InputAnalogue ( )
inlineprotected

◆ InputAnalogue() [2/2]

foray::osi::InputAnalogue::InputAnalogue ( InputDevice device,
int32_t  id,
std::string_view  name,
EAxis  axis 
)
inlineprotected

Member Function Documentation

◆ State()

virtual int16_t foray::osi::InputAnalogue::State ( ) const
pure virtual

Axis id of the input.

Fetches the inputs current state

Implemented in foray::osi::InputDevice::AxisJoystick.

Member Data Documentation

◆ mAxisId

EAxis foray::osi::InputAnalogue::mAxisId = {}
protected

The documentation for this class was generated from the following file: