CommonLibSSE NG
Loading...
Searching...
No Matches
RE::BSInputDevice Class Reference

#include <BSInputDevice.h>

Inheritance diagram for RE::BSInputDevice:
RE::BSIInputDevice RE::BSGamepadDevice RE::BSKeyboardDevice RE::BSMouseDevice RE::BSTrackedControllerDevice RE::BSPCGamepadDeviceDelegate RE::BSVirtualKeyboardDevice RE::BSWin32KeyboardDevice RE::BSWin32MouseDevice RE::BSOpenVRControllerDevice RE::BSPCOrbisGamepadDevice RE::BSWin32GamepadDevice RE::BSWin32VirtualKeyboardDevice

Classes

struct  InputButton
 

Public Member Functions

 ~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 Attributes

INPUT_DEVICE device
 
std::uint32_t pad0C
 
BSTHashMap< std::uint32_t, InputButton * > deviceButtons
 
BSTHashMap< BSFixedString, std::uint32_t > buttonNameIDMap
 

Static Public Attributes

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

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

Constructor & Destructor Documentation

◆ ~BSInputDevice()

RE::BSInputDevice::~BSInputDevice ( )
override

◆ BSInputDevice()

RE::BSInputDevice::BSInputDevice ( )
protected

Member Function Documentation

◆ GetKeyMapping()

bool RE::BSInputDevice::GetKeyMapping ( std::uint32_t  a_key,
BSFixedString a_mapping 
)
overridevirtual

◆ GetMappedKeycode()

bool RE::BSInputDevice::GetMappedKeycode ( std::uint32_t  a_key,
std::uint32_t &  outKeyCode 
)
overridevirtual

◆ GetMappingKey()

std::uint32_t RE::BSInputDevice::GetMappingKey ( BSFixedString  a_mapping)
overridevirtual

◆ IsEnabled()

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

◆ IsGamepad()

bool RE::BSInputDevice::IsGamepad ( ) const

◆ IsKeyboard()

bool RE::BSInputDevice::IsKeyboard ( ) const

◆ IsMouse()

bool RE::BSInputDevice::IsMouse ( ) const

◆ IsPressed()

bool RE::BSInputDevice::IsPressed ( std::uint32_t  a_keyCode) const

◆ LoadControlsDefinitionFile()

bool RE::BSInputDevice::LoadControlsDefinitionFile ( const char *  a_fileName)

◆ ResetButtonMaps()

void RE::BSInputDevice::ResetButtonMaps ( )

◆ SetButtonState()

void RE::BSInputDevice::SetButtonState ( std::uint32_t  a_buttonId,
float  a_timeSinceLastPoll,
bool  a_buttonWasPressed,
bool  a_buttonIsPressed 
)

Member Data Documentation

◆ buttonNameIDMap

BSTHashMap<BSFixedString, std::uint32_t> RE::BSInputDevice::buttonNameIDMap

◆ device

INPUT_DEVICE RE::BSInputDevice::device

◆ deviceButtons

BSTHashMap<std::uint32_t, InputButton*> RE::BSInputDevice::deviceButtons

◆ pad0C

std::uint32_t RE::BSInputDevice::pad0C

◆ RTTI

constexpr auto RE::BSInputDevice::RTTI = RTTI_BSInputDevice
inlinestaticconstexpr

◆ VTABLE

constexpr auto RE::BSInputDevice::VTABLE = VTABLE_BSInputDevice
inlinestaticconstexpr

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