CommonLibSSE NG
Loading...
Searching...
No Matches
RE::BSGamepadDevice Class Referenceabstract

#include <BSGamepadDevice.h>

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

Classes

struct  ColorParam
 

Public Member Functions

 ~BSGamepadDevice () override
 
bool IsEnabled () const override
 
virtual void SetRumble (float a_lValue, float a_rValue)=0
 
virtual void SetLEDColor (ColorParam *a_colorParam)
 
virtual void ResetLEDColor ()
 
virtual void Unk_0C (void)
 
virtual void ProcessRawInput (int32_t a_rawX, int32_t a_rawY, float &a_outX, float &a_outY)
 
virtual void Unk_0E (void)
 
- Public Member Functions inherited from RE::BSInputDevice
 ~BSInputDevice () override
 
bool GetKeyMapping (std::uint32_t a_key, BSFixedString &a_mapping) override
 
std::uint32_t GetMappingKey (BSFixedString a_mapping) override
 
bool GetMappedKeycode (std::uint32_t a_key, std::uint32_t &outKeyCode) override
 
bool IsEnabled () const override
 
bool IsKeyboard () const
 
bool IsMouse () const
 
bool IsGamepad () const
 
bool IsPressed (std::uint32_t a_keyCode) const
 
bool LoadControlsDefinitionFile (const char *a_fileName)
 
void ResetButtonMaps ()
 
void SetButtonState (std::uint32_t a_buttonId, float a_timeSinceLastPoll, bool a_buttonWasPressed, bool a_buttonIsPressed)
 
- Public Member Functions inherited from RE::BSIInputDevice
virtual ~BSIInputDevice ()=default
 
virtual void Initialize ()=0
 
virtual void Process (float a_arg1)=0
 
virtual void Release ()=0
 
virtual bool GetKeyMapping (std::uint32_t a_key, BSFixedString &a_mapping)=0
 
virtual std::uint32_t GetMappingKey (BSFixedString a_mapping)=0
 
virtual bool GetMappedKeycode (std::uint32_t a_key, std::uint32_t &outKeyCode)=0
 
virtual bool IsEnabled () const =0
 
virtual void Reset ()=0
 
- Public Member Functions inherited from RE::BSTEventSource< BSGamepadEvent >
 BSTEventSource ()
 
void AddEventSink (Sink *a_eventSink)
 
void AddEventSink (BSTEventSink< SinkEvent > *a_sink)
 
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 constexpr auto VTABLE = VTABLE_BSGamepadDevice
 
- Static Public Attributes inherited from RE::BSInputDevice
static constexpr auto RTTI = RTTI_BSInputDevice
 
static constexpr auto VTABLE = VTABLE_BSInputDevice
 
- Static Public Attributes inherited from RE::BSIInputDevice
static constexpr auto RTTI = RTTI_BSIInputDevice
 
static constexpr auto VTABLE = VTABLE_BSIInputDevice
 

Protected Member Functions

 BSGamepadDevice ()
 
- Protected Member Functions inherited from RE::BSInputDevice
 BSInputDevice ()
 
- Protected Member Functions inherited from RE::BSIInputDevice
 TES_HEAP_REDEFINE_NEW ()
 
 BSIInputDevice ()=default
 

Additional Inherited Members

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

Constructor & Destructor Documentation

◆ ~BSGamepadDevice()

RE::BSGamepadDevice::~BSGamepadDevice ( )
override

◆ BSGamepadDevice()

RE::BSGamepadDevice::BSGamepadDevice ( )
protected

Member Function Documentation

◆ IsEnabled()

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

Implements RE::BSIInputDevice.

◆ ProcessRawInput()

virtual void RE::BSGamepadDevice::ProcessRawInput ( int32_t  a_rawX,
int32_t  a_rawY,
float &  a_outX,
float &  a_outY 
)
virtual

Reimplemented in RE::BSPCOrbisGamepadDevice.

◆ ResetLEDColor()

virtual void RE::BSGamepadDevice::ResetLEDColor ( )
virtual

Reimplemented in RE::BSPCOrbisGamepadDevice.

◆ SetLEDColor()

virtual void RE::BSGamepadDevice::SetLEDColor ( ColorParam a_colorParam)
virtual

Reimplemented in RE::BSPCOrbisGamepadDevice.

◆ SetRumble()

virtual void RE::BSGamepadDevice::SetRumble ( float  a_lValue,
float  a_rValue 
)
pure virtual

◆ Unk_0C()

virtual void RE::BSGamepadDevice::Unk_0C ( void  )
virtual

◆ Unk_0E()

virtual void RE::BSGamepadDevice::Unk_0E ( void  )
virtual

Reimplemented in RE::BSPCOrbisGamepadDevice.

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

◆ VTABLE

constexpr auto RE::BSGamepadDevice::VTABLE = VTABLE_BSGamepadDevice
inlinestaticconstexpr

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