Skip to content
LeviMC
English
AutoLightDark
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;
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<bool()>> mAltJoystickAlwaysVisible;
26 ::ll::TypedStorage<8, 64, ::std::function<bool()>> mAltStickEnabled;
27 ::ll::TypedStorage<8, 64, ::std::function<float()>> mThumbstickOpacity;
28 ::ll::TypedStorage<8, 64, ::std::function<bool()>> mStaticJoystick;
29 ::ll::TypedStorage<8, 64, ::std::function<bool()>> mStaticAltJoystick;
30 ::ll::TypedStorage<8, 64, ::std::function<::RectangleArea()>> mDefaultMoveStickArea;
31 ::ll::TypedStorage<8, 64, ::std::function<::RectangleArea()>> mDefaultAltStickArea;
32 ::ll::TypedStorage<8, 64, ::std::function<::RectangleArea()>> mHotbarArea;
33 ::ll::TypedStorage<8, 64, ::std::function<bool()>> mJoystickVisibleWhenUnused;
34 ::ll::TypedStorage<8, 64, ::std::function<bool()>> mAltJoystickVisibleWhenUnused;
35 ::ll::TypedStorage<8, 64, ::std::function<bool()>> mShowActionButton;
36 ::ll::TypedStorage<8, 64, ::std::function<bool()>> mSprintOnMovement;
37 ::ll::TypedStorage<8, 64, ::std::function<bool()>> mIsInputSprinting;
38 ::ll::TypedStorage<8, 64, ::std::function<float()>> mClientActivePointer;
39 ::ll::TypedStorage<8, 64, ::std::function<bool()>> mIsInControlEditMode;
40 ::ll::TypedStorage<8, 64, ::std::function<::std::vector<::RectangleArea>()>> mGetInactiveAreasCallback;
41 ::ll::TypedStorage<4, 4, uint const> mTurnInteractButtonId;
42 ::ll::TypedStorage<4, 4, uint const> mTapButtonId;
43 ::ll::TypedStorage<4, 4, uint const> mHoldButtonId;
44 ::ll::TypedStorage<4, 4, uint const> mSprintButtonId;
45 ::ll::TypedStorage<8, 152, ::TouchMoveAndTurnControlState> mState;
46 // NOLINTEND
47
48public:
49 // virtual functions
50 // NOLINTBEGIN
51 virtual ~TouchMoveAndTurnInteractControl() /*override*/ = default;
52
53 virtual void
54 tick(::InputEventQueue& eventQueue, ::TouchPointResults& touchPointResults, int yAxisInversionFactor) /*override*/;
55
56 virtual void render(::InputRenderContext& context) const /*override*/;
57 // NOLINTEND
58
59public:
60 // member functions
61 // NOLINTBEGIN
62 MCNAPI bool _isClientCurrentActivePointer(int processedPointerId) const;
63
64 MCNAPI void _renderJoystick(
66 ::JoystickState state,
67 bool initialized,
68 float x,
69 float y,
70 float x0,
71 float y0,
72 ::RectangleArea const& moveArea,
73 ::RectangleArea const& defaultArea,
74 float radius,
75 bool staticJoystick,
76 bool joystickVisibleWhenUnused,
77 bool joystickAlwaysVisible
78 ) const;
79
80 MCNAPI void _setPreviousActionPointer(int processedPointerId);
81
82 MCNAPI void drawJoystick(
84 ::JoystickState joystickState,
85 float x,
86 float y,
87 float x0,
88 float y0,
89 float joystickRadius
90 ) const;
91 // NOLINTEND
92
93public:
94 // static functions
95 // NOLINTBEGIN
96 MCNAPI static void calibrateMoveDelta(float& dx, float& dy);
97 // NOLINTEND
98
99public:
100 // virtual function thunks
101 // NOLINTBEGIN
102 MCNAPI void $tick(::InputEventQueue& eventQueue, ::TouchPointResults& touchPointResults, int yAxisInversionFactor);
103
105 // NOLINTEND
106};
Definition InputEventQueue.h:5
Definition InputRenderContext.h:5
Definition RectangleArea.h:5
Definition TouchControl.h:5
Definition TouchMoveAndTurnInteractControl.h:5
MCAPI void _setPreviousActionPointer(int processedPointerId)
MCAPI void drawJoystick(::InputRenderContext &context, ::JoystickState joystickState, float x, float y, float x0, float y0, float joystickRadius) const
MCAPI void _renderJoystick(::InputRenderContext &context, ::JoystickState state, bool initialized, float x, float y, float x0, float y0, ::RectangleArea const &moveArea, ::RectangleArea const &defaultArea, float radius, bool staticJoystick, bool joystickVisibleWhenUnused, bool joystickAlwaysVisible) const
MCAPI bool _isClientCurrentActivePointer(int processedPointerId) const
MCAPI void $render(::InputRenderContext &context) const
static MCAPI void calibrateMoveDelta(float &dx, float &dy)
MCAPI void $tick(::InputEventQueue &eventQueue, ::TouchPointResults &touchPointResults, int yAxisInversionFactor)
Definition TouchPointResults.h:5
Definition context.h:5