CommonLibSSE (Parapets fork)
RE::BSInputDevice Class Reference

#include <BSInputDevice.h>

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

Classes

struct  InputButton
 

Public Member Functions

 ~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 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 Public Attributes inherited from RE::BSIInputDevice
static constexpr auto RTTI = RTTI_BSIInputDevice
 

Constructor & Destructor Documentation

◆ ~BSInputDevice()

RE::BSInputDevice::~BSInputDevice ( )
override

Member Function Documentation

◆ GetButtonNameFromID()

bool RE::BSInputDevice::GetButtonNameFromID ( std::int32_t  a_id,
BSFixedString a_buttonName 
)
overridevirtual

Implements RE::BSIInputDevice.

◆ GetKeyCodeFromID()

bool RE::BSInputDevice::GetKeyCodeFromID ( std::int32_t  a_id,
std::uint32_t &  a_keyCode 
)
overridevirtual

Implements RE::BSIInputDevice.

◆ GetMappingKey()

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

Implements RE::BSIInputDevice.

◆ IsEnabled()

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

Implements RE::BSIInputDevice.

◆ 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

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

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