CommonLibSSE (Parapets fork)
Loading...
Searching...
No Matches
InputEvent.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
RE/B/BSFixedString.h
"
4
#include "
RE/I/InputDevices.h
"
5
6
namespace
RE
7
{
8
enum class
INPUT_EVENT_TYPE
9
{
10
kButton
= 0,
11
kMouseMove
,
12
kChar
,
13
kThumbstick
,
14
kDeviceConnect
,
15
kKinect
16
};
17
18
class
ButtonEvent;
19
class
IDEvent;
20
21
class
InputEvent
22
{
23
public
:
24
inline
static
constexpr
auto
RTTI
=
RTTI_InputEvent
;
25
26
virtual
~InputEvent
();
// 00
27
28
[[nodiscard]]
virtual
bool
HasIDCode
()
const
;
// 01 - { return false; }
29
[[nodiscard]]
virtual
const
BSFixedString
&
QUserEvent
()
const
;
// 02 - { return ""; }
30
31
[[nodiscard]]
constexpr
INPUT_EVENT_TYPE
GetEventType
() const noexcept {
return
*
eventType
; }
32
[[nodiscard]]
constexpr
INPUT_DEVICE
GetDevice
() const noexcept {
return
*
device
; }
33
34
[[nodiscard]]
ButtonEvent
*
AsButtonEvent
();
35
[[nodiscard]]
const
ButtonEvent
*
AsButtonEvent
()
const
;
36
37
[[nodiscard]]
IDEvent
*
AsIDEvent
();
38
[[nodiscard]]
const
IDEvent
*
AsIDEvent
()
const
;
39
40
// members
41
stl::enumeration<INPUT_DEVICE, std::uint32_t>
device
;
// 08
42
stl::enumeration<INPUT_EVENT_TYPE, std::uint32_t>
eventType
;
// 0C
43
InputEvent
*
next
;
// 10
44
};
45
static_assert
(
sizeof
(
InputEvent
) == 0x18);
46
}
BSFixedString.h
InputDevices.h
RE::ButtonEvent
Definition:
ButtonEvent.h:10
RE::IDEvent
Definition:
IDEvent.h:9
RE::InputEvent
Definition:
InputEvent.h:22
RE::InputEvent::~InputEvent
virtual ~InputEvent()
RE::InputEvent::RTTI
static constexpr auto RTTI
Definition:
InputEvent.h:24
RE::InputEvent::device
stl::enumeration< INPUT_DEVICE, std::uint32_t > device
Definition:
InputEvent.h:41
RE::InputEvent::AsButtonEvent
const ButtonEvent * AsButtonEvent() const
RE::InputEvent::GetEventType
constexpr INPUT_EVENT_TYPE GetEventType() const noexcept
Definition:
InputEvent.h:31
RE::InputEvent::HasIDCode
virtual bool HasIDCode() const
RE::InputEvent::AsButtonEvent
ButtonEvent * AsButtonEvent()
RE::InputEvent::eventType
stl::enumeration< INPUT_EVENT_TYPE, std::uint32_t > eventType
Definition:
InputEvent.h:42
RE::InputEvent::QUserEvent
virtual const BSFixedString & QUserEvent() const
RE::InputEvent::GetDevice
constexpr INPUT_DEVICE GetDevice() const noexcept
Definition:
InputEvent.h:32
RE::InputEvent::AsIDEvent
const IDEvent * AsIDEvent() const
RE::InputEvent::AsIDEvent
IDEvent * AsIDEvent()
RE::InputEvent::next
InputEvent * next
Definition:
InputEvent.h:43
RE::detail::BSFixedString< char >
SKSE::stl::enumeration
Definition:
PCH.h:216
RE
Definition:
AbsorbEffect.h:6
RE::RTTI_InputEvent
constexpr REL::ID RTTI_InputEvent
Definition:
Offsets_RTTI.h:5064
RE::INPUT_EVENT_TYPE
INPUT_EVENT_TYPE
Definition:
InputEvent.h:9
RE::INPUT_EVENT_TYPE::kThumbstick
@ kThumbstick
RE::INPUT_EVENT_TYPE::kButton
@ kButton
RE::INPUT_EVENT_TYPE::kDeviceConnect
@ kDeviceConnect
RE::INPUT_EVENT_TYPE::kMouseMove
@ kMouseMove
RE::INPUT_EVENT_TYPE::kKinect
@ kKinect
RE::SCRIPT_PARAM_TYPE::kChar
@ kChar
RE::INPUT_DEVICES::INPUT_DEVICE
INPUT_DEVICE
Definition:
InputDevices.h:8
CommonLibSSE
include
RE
I
InputEvent.h
Generated by
1.9.6