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

#include <foray_inputdevice.hpp>

Inheritance diagram for foray::osi::InputDevice::ButtonJoystick:
foray::osi::InputBinary foray::osi::InputBase

Public Member Functions

 ButtonJoystick ()
 
 ButtonJoystick (InputDevice *device, int32_t id, std::string_view name, EButton button, SDL_Joystick *joystick)
 
virtual bool State () const override
 Button id of the input.
 

Public Attributes

SDL_Joystick * Joystick
 

Additional Inherited Members

- Protected Member Functions inherited from foray::osi::InputBinary
 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 inherited from foray::osi::InputBinary
EButton mButtonId = {}
 
- Protected Attributes inherited from foray::osi::InputBase
InputDevicemDevice = {}
 Device providing this input.
 
int32_t mId = {}
 
std::string mName = {}
 

Constructor & Destructor Documentation

◆ ButtonJoystick() [1/2]

foray::osi::InputDevice::ButtonJoystick::ButtonJoystick ( )
inline

◆ ButtonJoystick() [2/2]

foray::osi::InputDevice::ButtonJoystick::ButtonJoystick ( InputDevice device,
int32_t  id,
std::string_view  name,
EButton  button,
SDL_Joystick *  joystick 
)
inline

Member Function Documentation

◆ State()

virtual bool foray::osi::InputDevice::ButtonJoystick::State ( ) const
overridevirtual

Button id of the input.

Fetches the inputs current state

Implements foray::osi::InputBinary.

Member Data Documentation

◆ Joystick

SDL_Joystick* foray::osi::InputDevice::ButtonJoystick::Joystick

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