CommonLibSSE (Parapets fork)
BSPCGamepadDeviceHandler.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "RE/B/BSIInputDevice.h"
4 
5 namespace RE
6 {
7  class BSPCGamepadDeviceDelegate;
8 
10  {
11  public:
12  inline static constexpr auto RTTI = RTTI_BSPCGamepadDeviceHandler;
13 
14  ~BSPCGamepadDeviceHandler() override; // 00
15 
16  // override (BSIInputDevice)
17  void Initialize() override; // 01
18  void Poll(float a_timeDelta) override; // 02
19  void Shutdown() override; // 03
20  bool GetButtonNameFromID(std::int32_t a_id, BSFixedString& a_buttonName) override; // 04
21  std::uint32_t GetMappingKey(BSFixedString a_mapping) override; // 05
22  bool GetKeyCodeFromID(std::int32_t a_id, std::uint32_t& a_keyCode) override; // 06
23  bool IsEnabled() const override; // 07 - { return currentPCGamePadDelegate != 0; }
24  void ClearInputState() override; // 08
25 
26  // members
28  };
29  static_assert(sizeof(BSPCGamepadDeviceHandler) == 0x10);
30 }
Definition: BSIInputDevice.h:8
Definition: BSPCGamepadDeviceDelegate.h:10
Definition: BSPCGamepadDeviceHandler.h:10
bool IsEnabled() const override
BSPCGamepadDeviceDelegate * currentPCGamePadDelegate
Definition: BSPCGamepadDeviceHandler.h:27
bool GetKeyCodeFromID(std::int32_t a_id, std::uint32_t &a_keyCode) override
static constexpr auto RTTI
Definition: BSPCGamepadDeviceHandler.h:12
std::uint32_t GetMappingKey(BSFixedString a_mapping) override
void ClearInputState() override
void Poll(float a_timeDelta) override
bool GetButtonNameFromID(std::int32_t a_id, BSFixedString &a_buttonName) override
Definition: AbsorbEffect.h:6
constexpr REL::ID RTTI_BSPCGamepadDeviceHandler
Definition: Offsets_RTTI.h:1979