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/TouchControl.h"
7#include "mc/deps/input/TouchMoveAndTurnControlState.h"
8
9// auto generated forward declare list
10// clang-format off
11class InputEventQueue;
13class RectangleArea;
16// clang-format on
17
19public:
20 // member variables
21 // NOLINTBEGIN
22 ::ll::TypedStorage<8, 64, ::std::function<bool()>> mCondition;
23 ::ll::TypedStorage<8, 64, ::std::function<bool()>> mIsLeftHanded;
24 ::ll::TypedStorage<8, 64, ::std::function<bool()>> mJoystickAlwaysVisible;
25 ::ll::TypedStorage<8, 64, ::std::function<float()>> mThumbstickOpacity;
26 ::ll::TypedStorage<8, 64, ::std::function<bool()>> mStaticJoystick;
27 ::ll::TypedStorage<8, 64, ::std::function<::RectangleArea()>> mDefaultMoveStickArea;
28 ::ll::TypedStorage<8, 64, ::std::function<::RectangleArea()>> mHotbarArea;
29 ::ll::TypedStorage<8, 64, ::std::function<bool()>> mJoystickVisibleWhenUnused;
30 ::ll::TypedStorage<8, 64, ::std::function<bool()>> mShowActionButton;
31 ::ll::TypedStorage<8, 64, ::std::function<bool()>> mSprintOnMovement;
32 ::ll::TypedStorage<8, 64, ::std::function<bool()>> mIsInputSprinting;
33 ::ll::TypedStorage<8, 64, ::std::function<float()>> mClientActivePointer;
34 ::ll::TypedStorage<8, 64, ::std::function<bool()>> mIsInControlEditMode;
35 ::ll::TypedStorage<8, 64, ::std::function<::std::vector<::RectangleArea>()>> mGetInactiveAreasCallback;
36 ::ll::TypedStorage<4, 4, uint const> mTurnInteractButtonId;
37 ::ll::TypedStorage<4, 4, uint const> mTapButtonId;
38 ::ll::TypedStorage<4, 4, uint const> mHoldButtonId;
39 ::ll::TypedStorage<4, 4, uint const> mSprintButtonId;
40 ::ll::TypedStorage<8, 120, ::TouchMoveAndTurnControlState> mState;
41 // NOLINTEND
42
43public:
44 // prevent constructor by default
46
47public:
48 // virtual functions
49 // NOLINTBEGIN
50 virtual ~TouchMoveAndTurnInteractControl() /*override*/;
51
52 virtual void
53 tick(::InputEventQueue& eventQueue, ::TouchPointResults& touchPointResults, int yAxisInversionFactor) /*override*/;
54
55 virtual void render(::InputRenderContext& context) const /*override*/;
56 // NOLINTEND
57
58public:
59 // member functions
60 // NOLINTBEGIN
62 ::TouchControlConfig const& touchControlConfig,
63 ::std::function<::std::vector<::RectangleArea>()> inactiveAreas
64 );
65
66 MCAPI bool _isClientCurrentActivePointer(int processedPointerId) const;
67
68 MCAPI void _setPreviousActionPointer(int processedPointerId);
69
70 MCAPI bool _shouldUpdateActivePointer(int processedPointerId) const;
71
72 MCAPI bool calculateTouchDelta(
73 float x,
74 float y,
75 float& x0,
76 float& y0,
77 float& dx,
78 float& dy,
79 float deadZone,
80 float maximumMovementZone,
81 bool autoSprint
82 );
83
84 MCAPI void calculateTouchDeltaFromLastFrame(
85 float x,
86 float y,
87 float& prevX,
88 float& prevY,
89 float& dx,
90 float& dy,
91 int yAxisInversionFactor
92 );
93
94 MCAPI void calibrateMoveDelta(float& dx, float& dy);
95
96 MCAPI void
97 drawJoystick(::InputRenderContext& context, float x, float y, float x0, float y0, float joystickRadius) const;
98 // NOLINTEND
99
100public:
101 // constructor thunks
102 // NOLINTBEGIN
103 MCAPI void* $ctor(
104 ::TouchControlConfig const& touchControlConfig,
105 ::std::function<::std::vector<::RectangleArea>()> inactiveAreas
106 );
107 // NOLINTEND
108
109public:
110 // destructor thunk
111 // NOLINTBEGIN
112 MCAPI void $dtor();
113 // NOLINTEND
114
115public:
116 // virtual function thunks
117 // NOLINTBEGIN
118 MCAPI void $tick(::InputEventQueue& eventQueue, ::TouchPointResults& touchPointResults, int yAxisInversionFactor);
119
120 MCAPI void $render(::InputRenderContext& context) const;
121 // NOLINTEND
122
123public:
124 // vftables
125 // NOLINTBEGIN
126 MCNAPI static void** $vftable();
127 // NOLINTEND
128};
Definition InputEventQueue.h:5
Definition InputRenderContext.h:5
Definition TouchControl.h:5
Definition TouchMoveAndTurnInteractControl.h:5
static MCAPI void ** $vftable()
Definition TouchPointResults.h:5
Definition TouchControlConfig.h:5