LeviLamina
Loading...
Searching...
No Matches
InputEventQueue.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/input/InputMode.h"
7#include "mc/deps/input/enums/ButtonState.h"
8#include "mc/deps/input/enums/DirectionId.h"
9#include "mc/deps/input/enums/FocusImpact.h"
10#include "mc/deps/input/enums/RawInputType.h"
11
12// auto generated forward declare list
13// clang-format off
14struct InputEvent;
15// clang-format on
16
17class InputEventQueue {
18public:
19 // member variables
20 // NOLINTBEGIN
21 ::ll::TypedStorage<8, 40, ::std::queue<::InputEvent, ::std::deque<::InputEvent>>> mQueue;
22 // NOLINTEND
23
24public:
25 // member functions
26 // NOLINTBEGIN
27 MCAPI void enqueueButton(
28 uint id,
29 ::ButtonState state,
30 bool exclusive,
31 ::FocusImpact focusImpact,
32 int controllerId,
33 bool inputClearingEvent,
34 float repeatInterval,
35 int source
36 );
37
38 MCAPI void enqueueButtonPressAndRelease(uint buttonId, ::FocusImpact focusImpact, int controllerId);
39
40 MCAPI void enqueueClearPointerLocationWithId(int id);
41
42 MCAPI void enqueueDirection(
43 ::DirectionId directionId,
44 float x,
45 float y,
46 ::FocusImpact focusImpact,
47 int controllerId,
48 bool inputClearingEvent
49 );
50
51 MCAPI void enqueuePointerLocation(
52 ::InputMode inputMode,
53 short x,
54 short y,
55 ::FocusImpact focusImpact,
56 bool forceMotionlessPointer,
57 int controllerId
58 );
59
60 MCAPI void enqueuePointerLocationWithId(int id, short x, short y, bool updateActionPointer);
61
62 MCAPI void
63 enqueueRawInput(int id, ::RawInputType keyType, ::ButtonState state, int controllerId, bool allowRemapping);
64
65 MCAPI void
66 enqueueTextChar(::std::string utf8Input, bool keepImePosition, ::FocusImpact focusImpact, int controllerId);
67
68 MCAPI ~InputEventQueue();
69 // NOLINTEND
70
71public:
72 // destructor thunk
73 // NOLINTBEGIN
74 MCFOLD void $dtor();
75 // NOLINTEND
76};
Definition InputEventQueue.h:5
Definition InputEvent.h:5