CommonLibSSE NG
RE::BSInputDeviceManager Class Reference

#include <BSInputDeviceManager.h>

Inheritance diagram for RE::BSInputDeviceManager:
RE::BSTEventSource< InputEvent * > RE::BSTSingletonSDM< BSInputDeviceManager > RE::BSTSingletonSDMBase< Traits >

Classes

struct  RUNTIME_DATA
 

Public Member Functions

BSPCGamepadDeviceDelegateGetGamepad ()
 
BSPCGamepadDeviceHandlerGetGamepadHandler ()
 
BSWin32KeyboardDeviceGetKeyboard ()
 
BSWin32MouseDeviceGetMouse ()
 
BSTrackedControllerDeviceGetVRControllerRight ()
 
BSTrackedControllerDeviceGetVRControllerLeft ()
 
BSWin32VirtualKeyboardDeviceGetVirtualKeyboard ()
 
bool IsGamepadConnected ()
 
bool IsGamepadEnabled ()
 
bool IsMouseBackground ()
 
bool GetDeviceKeyMapping (INPUT_DEVICE a_device, std::uint32_t a_key, BSFixedString &a_mapping)
 
bool GetDeviceMappedKeycode (INPUT_DEVICE a_device, std::uint32_t a_key, std::uint32_t &a_outKeyCode)
 
void ProcessGamepadEnabledChange ()
 
void ReinitializeMouse ()
 
void CreateInputDevices ()
 
void ResetInputDevices ()
 
void DestroyInputDevices ()
 
void PollInputDevices (float a_secsSinceLastFrame)
 
RUNTIME_DATAGetRuntimeData () noexcept
 
const RUNTIME_DATAGetRuntimeData () const noexcept
 
- Public Member Functions inherited from RE::BSTEventSource< InputEvent * >
 BSTEventSource ()
 
void AddEventSink (Sink *a_eventSink)
 
void AddEventSink (BSTEventSink< SinkEvent > *a_sink)
 
void RemoveEventSink (Sink *a_eventSink)
 
void SendEvent (const InputEvent * *a_event)
 
void operator() (const InputEvent * *a_event)
 

Static Public Member Functions

static BSInputDeviceManagerGetSingleton ()
 

Public Attributes

std::uint8_t pad59
 
std::uint16_t pad5A
 
std::uint32_t pad5C
 
BSIInputDevicedevices [4]
 
BSTrackedControllerDeviceunkDevice
 
BSTrackedControllerDevicevrDevices [2]
 
- Public Attributes inherited from RE::BSTEventSource< InputEvent * >
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
 

Additional Inherited Members

- Public Types inherited from RE::BSTEventSource< InputEvent * >
using Sink = BSTEventSink< InputEvent * >
 
- Public Types inherited from RE::BSTSingletonSDMBase< Traits >
using Type = typename Traits::Type
 
using Allocator = typename Traits::Allocator
 

Member Function Documentation

◆ CreateInputDevices()

void RE::BSInputDeviceManager::CreateInputDevices ( )

◆ DestroyInputDevices()

void RE::BSInputDeviceManager::DestroyInputDevices ( )

◆ GetDeviceKeyMapping()

bool RE::BSInputDeviceManager::GetDeviceKeyMapping ( INPUT_DEVICE  a_device,
std::uint32_t  a_key,
BSFixedString a_mapping 
)

◆ GetDeviceMappedKeycode()

bool RE::BSInputDeviceManager::GetDeviceMappedKeycode ( INPUT_DEVICE  a_device,
std::uint32_t  a_key,
std::uint32_t &  a_outKeyCode 
)

◆ GetGamepad()

BSPCGamepadDeviceDelegate* RE::BSInputDeviceManager::GetGamepad ( )

◆ GetGamepadHandler()

BSPCGamepadDeviceHandler* RE::BSInputDeviceManager::GetGamepadHandler ( )

◆ GetKeyboard()

BSWin32KeyboardDevice* RE::BSInputDeviceManager::GetKeyboard ( )

◆ GetMouse()

BSWin32MouseDevice* RE::BSInputDeviceManager::GetMouse ( )

◆ GetRuntimeData() [1/2]

const RUNTIME_DATA& RE::BSInputDeviceManager::GetRuntimeData ( ) const
inlinenoexcept

◆ GetRuntimeData() [2/2]

RUNTIME_DATA& RE::BSInputDeviceManager::GetRuntimeData ( )
inlinenoexcept

◆ GetSingleton()

static BSInputDeviceManager* RE::BSInputDeviceManager::GetSingleton ( )
static

◆ GetVirtualKeyboard()

BSWin32VirtualKeyboardDevice* RE::BSInputDeviceManager::GetVirtualKeyboard ( )

◆ GetVRControllerLeft()

BSTrackedControllerDevice* RE::BSInputDeviceManager::GetVRControllerLeft ( )

◆ GetVRControllerRight()

BSTrackedControllerDevice* RE::BSInputDeviceManager::GetVRControllerRight ( )

◆ IsGamepadConnected()

bool RE::BSInputDeviceManager::IsGamepadConnected ( )

◆ IsGamepadEnabled()

bool RE::BSInputDeviceManager::IsGamepadEnabled ( )

◆ IsMouseBackground()

bool RE::BSInputDeviceManager::IsMouseBackground ( )

◆ PollInputDevices()

void RE::BSInputDeviceManager::PollInputDevices ( float  a_secsSinceLastFrame)

◆ ProcessGamepadEnabledChange()

void RE::BSInputDeviceManager::ProcessGamepadEnabledChange ( )

◆ ReinitializeMouse()

void RE::BSInputDeviceManager::ReinitializeMouse ( )

◆ ResetInputDevices()

void RE::BSInputDeviceManager::ResetInputDevices ( )

Member Data Documentation

◆ devices

BSIInputDevice* RE::BSInputDeviceManager::devices[4]

◆ pad59

std::uint8_t RE::BSInputDeviceManager::pad59

◆ pad5A

std::uint16_t RE::BSInputDeviceManager::pad5A

◆ pad5C

std::uint32_t RE::BSInputDeviceManager::pad5C

◆ unkDevice

BSTrackedControllerDevice* RE::BSInputDeviceManager::unkDevice

◆ vrDevices

BSTrackedControllerDevice* RE::BSInputDeviceManager::vrDevices[2]

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