CommonLibSSE (powerof3)
PlayerInputHandler.h
Go to the documentation of this file.
1 #pragma once
2 
3 namespace RE
4 {
5  class ButtonEvent;
6  class InputEvent;
7  class MouseMoveEvent;
8  class PlayerControlsData;
9  class ThumbstickEvent;
10 
12  {
13  public:
14  inline static constexpr auto RTTI = RTTI_PlayerInputHandler;
15 
16  virtual ~PlayerInputHandler(); // 00
17 
18  virtual bool CanProcess(InputEvent* a_event) = 0; // 01
19  virtual void ProcessThumbstick(ThumbstickEvent* a_event, PlayerControlsData* a_data); // 02 - { return; }
20  virtual void ProcessMouseMove(MouseMoveEvent* a_event, PlayerControlsData* a_data); // 03 - { return; }
21  virtual void ProcessButton(ButtonEvent* a_event, PlayerControlsData* a_data); // 04 - { return; }
22 
23  [[nodiscard]] bool IsInputEventHandlingEnabled() const;
24  void SetInputEventHandlingEnabled(bool a_enabled);
25 
26  // members
28  std::uint8_t pad09; // 09
29  std::uint16_t pad0A; // 0A
30  std::uint32_t pad0C; // 0C
31  };
32  static_assert(sizeof(PlayerInputHandler) == 0x10);
33 }
Definition: ButtonEvent.h:10
Definition: InputEvent.h:22
Definition: MouseMoveEvent.h:8
Definition: PlayerControlsData.h:8
Definition: PlayerInputHandler.h:12
virtual void ProcessButton(ButtonEvent *a_event, PlayerControlsData *a_data)
std::uint32_t pad0C
Definition: PlayerInputHandler.h:30
void SetInputEventHandlingEnabled(bool a_enabled)
virtual bool CanProcess(InputEvent *a_event)=0
virtual void ProcessThumbstick(ThumbstickEvent *a_event, PlayerControlsData *a_data)
bool inputEventHandlingEnabled
Definition: PlayerInputHandler.h:27
virtual void ProcessMouseMove(MouseMoveEvent *a_event, PlayerControlsData *a_data)
static constexpr auto RTTI
Definition: PlayerInputHandler.h:14
std::uint16_t pad0A
Definition: PlayerInputHandler.h:29
std::uint8_t pad09
Definition: PlayerInputHandler.h:28
virtual ~PlayerInputHandler()
bool IsInputEventHandlingEnabled() const
Definition: ThumbstickEvent.h:8
Definition: AbsorbEffect.h:6
constexpr REL::ID RTTI_PlayerInputHandler
Definition: Offsets_RTTI.h:5721