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

#include <BSWin32MouseDevice.h>

Inheritance diagram for RE::BSWin32MouseDevice:
RE::BSMouseDevice RE::BSInputDevice RE::BSIInputDevice

Classes

struct  Keys
 

Public Types

using Key = Keys::Key
 

Public Member Functions

 ~BSWin32MouseDevice () override
 
void Initialize () override
 
void Process (float a_arg1) override
 
void Release () override
 
void Reset () override
 
void Reinitialize (void) override
 
- Public Member Functions inherited from RE::BSMouseDevice
 ~BSMouseDevice () override
 
virtual void Reinitialize (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 Attributes

DirectInput8::IDirectInputDevice8A * dInputDevice
 
DirectInput8::DIMOUSESTATE2 dInputPrevState {}
 
DirectInput8::DIMOUSESTATE2 dInputNextState {}
 
bool notInitialized
 
BSSpinLock reinitializeLock
 
- Public Attributes inherited from RE::BSMouseDevice
bool backgroundMouse
 
- 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
 

Static Public Attributes

static constexpr auto RTTI = RTTI_BSWin32MouseDevice
 
static constexpr auto VTABLE = VTABLE_BSWin32MouseDevice
 
- Static Public Attributes inherited from RE::BSMouseDevice
static constexpr auto RTTI = RTTI_BSMouseDevice
 
static constexpr auto VTABLE = VTABLE_BSMouseDevice
 
- 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

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

Member Typedef Documentation

◆ Key

Constructor & Destructor Documentation

◆ ~BSWin32MouseDevice()

RE::BSWin32MouseDevice::~BSWin32MouseDevice ( )
override

◆ BSWin32MouseDevice()

RE::BSWin32MouseDevice::BSWin32MouseDevice ( )
protected

Member Function Documentation

◆ Initialize()

void RE::BSWin32MouseDevice::Initialize ( )
overridevirtual

Implements RE::BSIInputDevice.

◆ Process()

void RE::BSWin32MouseDevice::Process ( float  a_arg1)
overridevirtual

Implements RE::BSIInputDevice.

◆ Reinitialize()

void RE::BSWin32MouseDevice::Reinitialize ( void  )
overridevirtual

Reimplemented from RE::BSMouseDevice.

◆ Release()

void RE::BSWin32MouseDevice::Release ( )
overridevirtual

Implements RE::BSIInputDevice.

◆ Reset()

void RE::BSWin32MouseDevice::Reset ( )
overridevirtual

Implements RE::BSIInputDevice.

Member Data Documentation

◆ dInputDevice

DirectInput8::IDirectInputDevice8A* RE::BSWin32MouseDevice::dInputDevice

◆ dInputNextState

DirectInput8::DIMOUSESTATE2 RE::BSWin32MouseDevice::dInputNextState {}

◆ dInputPrevState

DirectInput8::DIMOUSESTATE2 RE::BSWin32MouseDevice::dInputPrevState {}

◆ notInitialized

bool RE::BSWin32MouseDevice::notInitialized

◆ reinitializeLock

BSSpinLock RE::BSWin32MouseDevice::reinitializeLock
mutable

◆ RTTI

constexpr auto RE::BSWin32MouseDevice::RTTI = RTTI_BSWin32MouseDevice
inlinestaticconstexpr

◆ VTABLE

constexpr auto RE::BSWin32MouseDevice::VTABLE = VTABLE_BSWin32MouseDevice
inlinestaticconstexpr

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