LeviLamina
Loading...
Searching...
No Matches
TouchMoveAndTurnInteractControl.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/input/JoystickState.h"
7#include "mc/deps/input/TouchControl.h"
8#include "mc/deps/input/TouchMoveAndTurnControlState.h"
9
10// auto generated forward declare list
11// clang-format off
12class InputEventQueue;
14class RectangleArea;
17// clang-format on
18
20public:
21 // member variables
22 // NOLINTBEGIN
23 ::ll::TypedStorage<8, 64, ::std::function<bool()>> mCondition;
24 ::ll::TypedStorage<8, 64, ::std::function<bool()>> mIsLeftHanded;
25 ::ll::TypedStorage<8, 64, ::std::function<bool()>> mJoystickAlwaysVisible;
26 ::ll::TypedStorage<8, 64, ::std::function<bool()>> mAltJoystickAlwaysVisible;
27 ::ll::TypedStorage<8, 64, ::std::function<bool()>> mAltStickEnabled;
28 ::ll::TypedStorage<8, 64, ::std::function<float()>> mThumbstickOpacity;
29 ::ll::TypedStorage<8, 64, ::std::function<bool()>> mStaticJoystick;
30 ::ll::TypedStorage<8, 64, ::std::function<bool()>> mStaticAltJoystick;
31 ::ll::TypedStorage<8, 64, ::std::function<::RectangleArea()>> mDefaultMoveStickArea;
32 ::ll::TypedStorage<8, 64, ::std::function<::RectangleArea()>> mDefaultAltStickArea;
33 ::ll::TypedStorage<8, 64, ::std::function<::RectangleArea()>> mHotbarArea;
34 ::ll::TypedStorage<8, 64, ::std::function<bool()>> mJoystickVisibleWhenUnused;
35 ::ll::TypedStorage<8, 64, ::std::function<bool()>> mAltJoystickVisibleWhenUnused;
36 ::ll::TypedStorage<8, 64, ::std::function<bool()>> mShowActionButton;
37 ::ll::TypedStorage<8, 64, ::std::function<bool()>> mSprintOnMovement;
38 ::ll::TypedStorage<8, 64, ::std::function<bool()>> mIsInputSprinting;
39 ::ll::TypedStorage<8, 64, ::std::function<float()>> mClientActivePointer;
40 ::ll::TypedStorage<8, 64, ::std::function<bool()>> mIsInControlEditMode;
41 ::ll::TypedStorage<8, 64, ::std::function<::std::vector<::RectangleArea>()>> mGetInactiveAreasCallback;
42 ::ll::TypedStorage<4, 4, uint const> mTurnInteractButtonId;
43 ::ll::TypedStorage<4, 4, uint const> mTapButtonId;
44 ::ll::TypedStorage<4, 4, uint const> mHoldButtonId;
45 ::ll::TypedStorage<4, 4, uint const> mSprintButtonId;
46 ::ll::TypedStorage<8, 152, ::TouchMoveAndTurnControlState> mState;
47 // NOLINTEND
48
49public:
50 // prevent constructor by default
51 TouchMoveAndTurnInteractControl();
52
53public:
54 // virtual functions
55 // NOLINTBEGIN
56 virtual ~TouchMoveAndTurnInteractControl() /*override*/;
57
58 virtual void
59 tick(::InputEventQueue& eventQueue, ::TouchPointResults& touchPointResults, int yAxisInversionFactor) /*override*/;
60
61 virtual void render(::InputRenderContext& context) const /*override*/;
62 // NOLINTEND
63
64public:
65 // member functions
66 // NOLINTBEGIN
67 MCAPI TouchMoveAndTurnInteractControl(
68 ::TouchControlConfig const& touchControlConfig,
69 ::std::function<::std::vector<::RectangleArea>()> inactiveAreas
70 );
71
72 MCAPI bool _isClientCurrentActivePointer(int processedPointerId) const;
73
74 MCAPI void _renderJoystick(
75 ::InputRenderContext& context,
76 ::JoystickState state,
77 bool initialized,
78 float x,
79 float y,
80 float x0,
81 float y0,
82 ::RectangleArea const& moveArea,
83 ::RectangleArea const& defaultArea,
84 float radius,
85 bool staticJoystick,
86 bool joystickVisibleWhenUnused,
87 bool joystickAlwaysVisible
88 ) const;
89
90 MCAPI void _setPreviousActionPointer(int processedPointerId);
91
92 MCAPI void _tickAltTurn(
93 ::InputEventQueue& eventQueue,
94 ::TouchPointResults& touchPointResults,
95 ::RectangleArea const& altTurnArea,
96 ::RectangleArea const& defaultAltTurnArea,
97 float maxAltTurnZone,
98 bool staticJoystick,
99 bool joystickAlwaysVisible,
100 bool joystickVisibleWhenUnused
101 );
102
103 MCAPI void _tickHold(
104 ::InputEventQueue& eventQueue,
105 ::TouchPointResults& touchPointResults,
106 int yAxisInversionFactor,
107 ::RectangleArea const& moveArea,
108 ::RectangleArea const& turnArea,
109 ::RectangleArea const& altTurnArea,
110 ::RectangleArea const& defaultMoveArea,
111 ::RectangleArea const& defaultAltTurnArea,
112 float maxMovementZone,
113 bool staticJoystick,
114 bool staticAltJoystick,
115 bool altStickEnabled
116 );
117
118 MCAPI void _tickMove(
119 ::InputEventQueue& eventQueue,
120 ::TouchPointResults& touchPointResults,
121 ::RectangleArea const& moveArea,
122 ::RectangleArea const& defaultMoveArea,
123 float maxMovementZone,
124 bool staticJoystick,
125 bool joystickAlwaysVisible,
126 bool joystickVisibleWhenUnused
127 );
128
129 MCAPI void _tickTurn(
130 ::InputEventQueue& eventQueue,
131 ::TouchPointResults& touchPointResults,
132 int yAxisInversionFactor,
133 ::RectangleArea const& turnArea,
134 float maxMovementZone
135 );
136
137 MCAPI void calibrateMoveDelta(float& dx, float& dy);
138
139 MCAPI void drawJoystick(
140 ::InputRenderContext& context,
141 ::JoystickState joystickState,
142 float x,
143 float y,
144 float x0,
145 float y0,
146 float joystickRadius
147 ) const;
148 // NOLINTEND
149
150public:
151 // constructor thunks
152 // NOLINTBEGIN
153 MCAPI void* $ctor(
154 ::TouchControlConfig const& touchControlConfig,
155 ::std::function<::std::vector<::RectangleArea>()> inactiveAreas
156 );
157 // NOLINTEND
158
159public:
160 // destructor thunk
161 // NOLINTBEGIN
162 MCAPI void $dtor();
163 // NOLINTEND
164
165public:
166 // virtual function thunks
167 // NOLINTBEGIN
168 MCAPI void $tick(::InputEventQueue& eventQueue, ::TouchPointResults& touchPointResults, int yAxisInversionFactor);
169
170 MCAPI void $render(::InputRenderContext& context) const;
171 // NOLINTEND
172
173public:
174 // vftables
175 // NOLINTBEGIN
176 MCNAPI static void** $vftable();
177 // NOLINTEND
178};
Definition InputEventQueue.h:5
Definition InputRenderContext.h:5
Definition RectangleArea.h:5
Definition TouchControl.h:5
Definition TouchMoveAndTurnInteractControl.h:5
static MCAPI void ** $vftable()
Definition TouchPointResults.h:5
Definition TouchControlConfig.h:5