CommonLibSSE (Parapets fork)
RE::BSWin32GamepadDevice Class Reference

#include <BSWin32GamepadDevice.h>

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

Classes

struct  InputState
 
struct  Keys
 

Public Types

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

Public Member Functions

 ~BSWin32GamepadDevice () override
 
void Initialize () override
 
void Poll (float a_timeDelta) override
 
void Shutdown () override
 
void ClearInputState () override
 
void SetVibration (float a_largeMotor, float a_smallMotor) override
 
- Public Member Functions inherited from RE::BSPCGamepadDeviceDelegate
 ~BSPCGamepadDeviceDelegate () override
 
- Public Member Functions inherited from RE::BSGamepadDevice
 ~BSGamepadDevice () override
 
bool IsEnabled () const override
 
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 ()
 
- 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

InputState previousState
 
InputState currentState
 
- Public Attributes inherited from RE::BSPCGamepadDeviceDelegate
BSPCGamepadDeviceHandlergamepadDeviceHandler
 
- Public Attributes inherited from RE::BSGamepadDevice
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_BSWin32GamepadDevice
 
- Static Public Attributes inherited from RE::BSPCGamepadDeviceDelegate
static constexpr auto RTTI = RTTI_BSPCGamepadDeviceDelegate
 
- Static Public Attributes inherited from RE::BSGamepadDevice
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
 

Member Typedef Documentation

◆ Key

Constructor & Destructor Documentation

◆ ~BSWin32GamepadDevice()

RE::BSWin32GamepadDevice::~BSWin32GamepadDevice ( )
override

Member Function Documentation

◆ ClearInputState()

void RE::BSWin32GamepadDevice::ClearInputState ( )
overridevirtual

Reimplemented from RE::BSPCGamepadDeviceDelegate.

◆ Initialize()

void RE::BSWin32GamepadDevice::Initialize ( )
overridevirtual

Reimplemented from RE::BSPCGamepadDeviceDelegate.

◆ Poll()

void RE::BSWin32GamepadDevice::Poll ( float  a_timeDelta)
overridevirtual

Reimplemented from RE::BSPCGamepadDeviceDelegate.

◆ SetVibration()

void RE::BSWin32GamepadDevice::SetVibration ( float  a_largeMotor,
float  a_smallMotor 
)
overridevirtual

Reimplemented from RE::BSPCGamepadDeviceDelegate.

◆ Shutdown()

void RE::BSWin32GamepadDevice::Shutdown ( )
overridevirtual

Reimplemented from RE::BSPCGamepadDeviceDelegate.

Member Data Documentation

◆ currentState

InputState RE::BSWin32GamepadDevice::currentState

◆ previousState

InputState RE::BSWin32GamepadDevice::previousState

◆ RTTI

constexpr auto RE::BSWin32GamepadDevice::RTTI = RTTI_BSWin32GamepadDevice
inlinestaticconstexpr

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