CommonLibSSE (Parapets fork)
RE::BSGamepadDevice Class Referenceabstract

#include <BSGamepadDevice.h>

Inheritance diagram for RE::BSGamepadDevice:
RE::BSInputDevice RE::BSTEventSource< BSGamepadEvent > RE::BSIInputDevice RE::BSPCGamepadDeviceDelegate RE::BSWin32GamepadDevice

Public Member Functions

 ~BSGamepadDevice () override
 
bool IsEnabled () const override
 
virtual void SetVibration (float a_largeMotor, float a_smallMotor)=0
 
virtual void SetDeviceLight (const std::uint32_t(&a_rgb)[3])
 
virtual void ResetDeviceLight ()
 
virtual bool IsRemoteController ()
 
virtual void NormalizeThumbstickValue (int a_thumbX, int a_thumbY, float &a_xOut, float &a_yOut)
 
virtual void DoEnableListeningMode ()
 
- Public Member Functions inherited from RE::BSInputDevice
 ~BSInputDevice () override
 
bool GetButtonNameFromID (std::int32_t a_id, BSFixedString &a_buttonName) override
 
std::uint32_t GetMappingKey (BSFixedString a_mapping) override
 
bool GetKeyCodeFromID (std::int32_t a_id, std::uint32_t &a_keyCode) override
 
bool IsEnabled () const override
 
bool IsKeyboard () const
 
bool IsMouse () const
 
bool IsGamepad () const
 
bool IsPressed (std::uint32_t a_keyCode) const
 
- Public Member Functions inherited from RE::BSIInputDevice
virtual ~BSIInputDevice ()
 
virtual void Initialize ()=0
 
virtual void Poll (float a_timeDelta)=0
 
virtual void Shutdown ()=0
 
virtual void ClearInputState ()=0
 
- Public Member Functions inherited from RE::BSTEventSource< BSGamepadEvent >
 BSTEventSource ()
 
void AddEventSink (Sink *a_eventSink)
 
void RemoveEventSink (Sink *a_eventSink)
 
void SendEvent (const BSGamepadEvent *a_event)
 
void operator() (const BSGamepadEvent *a_event)
 

Public Attributes

std::int32_t userIndex
 
bool connected
 
bool listeningForInput
 
std::uint16_t padCE
 
- Public Attributes inherited from RE::BSInputDevice
INPUT_DEVICE device
 
std::uint32_t pad0C
 
BSTHashMap< std::uint32_t, InputButton * > deviceButtons
 
BSTHashMap< BSFixedString, std::uint32_t > buttonNameIDMap
 
- Public Attributes inherited from RE::BSTEventSource< BSGamepadEvent >
BSTArray< Sink * > sinks
 
BSTArray< Sink * > pendingRegisters
 
BSTArray< Sink * > pendingUnregisters
 
BSSpinLock lock
 
bool notifying
 
std::uint8_t pad51
 
std::uint16_t pad52
 
std::uint32_t pad54
 

Static Public Attributes

static constexpr auto RTTI = RTTI_BSGamepadDevice
 
- Static Public Attributes inherited from RE::BSInputDevice
static constexpr auto RTTI = RTTI_BSInputDevice
 
- Static Public Attributes inherited from RE::BSIInputDevice
static constexpr auto RTTI = RTTI_BSIInputDevice
 

Additional Inherited Members

- Public Types inherited from RE::BSTEventSource< BSGamepadEvent >
using Sink = BSTEventSink< BSGamepadEvent >
 

Constructor & Destructor Documentation

◆ ~BSGamepadDevice()

RE::BSGamepadDevice::~BSGamepadDevice ( )
override

Member Function Documentation

◆ DoEnableListeningMode()

virtual void RE::BSGamepadDevice::DoEnableListeningMode ( )
virtual

◆ IsEnabled()

bool RE::BSGamepadDevice::IsEnabled ( ) const
overridevirtual

Implements RE::BSIInputDevice.

◆ IsRemoteController()

virtual bool RE::BSGamepadDevice::IsRemoteController ( )
virtual

◆ NormalizeThumbstickValue()

virtual void RE::BSGamepadDevice::NormalizeThumbstickValue ( int  a_thumbX,
int  a_thumbY,
float &  a_xOut,
float &  a_yOut 
)
virtual

◆ ResetDeviceLight()

virtual void RE::BSGamepadDevice::ResetDeviceLight ( )
virtual

◆ SetDeviceLight()

virtual void RE::BSGamepadDevice::SetDeviceLight ( const std::uint32_t(&)  a_rgb[3])
virtual

◆ SetVibration()

virtual void RE::BSGamepadDevice::SetVibration ( float  a_largeMotor,
float  a_smallMotor 
)
pure virtual

Member Data Documentation

◆ connected

bool RE::BSGamepadDevice::connected

◆ listeningForInput

bool RE::BSGamepadDevice::listeningForInput

◆ padCE

std::uint16_t RE::BSGamepadDevice::padCE

◆ RTTI

constexpr auto RE::BSGamepadDevice::RTTI = RTTI_BSGamepadDevice
inlinestaticconstexpr

◆ userIndex

std::int32_t RE::BSGamepadDevice::userIndex

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