CommonLibSSE (Parapets fork)
Loading...
Searching...
No Matches
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
11
class
PlayerInputHandler
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
27
bool
inputEventHandlingEnabled
;
// 08
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
}
RE::ButtonEvent
Definition:
ButtonEvent.h:10
RE::InputEvent
Definition:
InputEvent.h:22
RE::MouseMoveEvent
Definition:
MouseMoveEvent.h:8
RE::PlayerControlsData
Definition:
PlayerControlsData.h:8
RE::PlayerInputHandler
Definition:
PlayerInputHandler.h:12
RE::PlayerInputHandler::ProcessButton
virtual void ProcessButton(ButtonEvent *a_event, PlayerControlsData *a_data)
RE::PlayerInputHandler::pad0C
std::uint32_t pad0C
Definition:
PlayerInputHandler.h:30
RE::PlayerInputHandler::SetInputEventHandlingEnabled
void SetInputEventHandlingEnabled(bool a_enabled)
RE::PlayerInputHandler::CanProcess
virtual bool CanProcess(InputEvent *a_event)=0
RE::PlayerInputHandler::ProcessThumbstick
virtual void ProcessThumbstick(ThumbstickEvent *a_event, PlayerControlsData *a_data)
RE::PlayerInputHandler::inputEventHandlingEnabled
bool inputEventHandlingEnabled
Definition:
PlayerInputHandler.h:27
RE::PlayerInputHandler::ProcessMouseMove
virtual void ProcessMouseMove(MouseMoveEvent *a_event, PlayerControlsData *a_data)
RE::PlayerInputHandler::RTTI
static constexpr auto RTTI
Definition:
PlayerInputHandler.h:14
RE::PlayerInputHandler::pad0A
std::uint16_t pad0A
Definition:
PlayerInputHandler.h:29
RE::PlayerInputHandler::pad09
std::uint8_t pad09
Definition:
PlayerInputHandler.h:28
RE::PlayerInputHandler::~PlayerInputHandler
virtual ~PlayerInputHandler()
RE::PlayerInputHandler::IsInputEventHandlingEnabled
bool IsInputEventHandlingEnabled() const
RE::ThumbstickEvent
Definition:
ThumbstickEvent.h:8
RE
Definition:
AbsorbEffect.h:6
RE::RTTI_PlayerInputHandler
constexpr REL::ID RTTI_PlayerInputHandler
Definition:
Offsets_RTTI.h:5721
CommonLibSSE
include
RE
P
PlayerInputHandler.h
Generated by
1.9.6