LeviLamina
Loading...
Searching...
No Matches
TouchControlSet.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/input/TouchMoveAndTurnControlState.h"
7#include "mc/deps/input/TouchPointResults.h"
8#include "mc/deps/input/TouchTurnControlState.h"
9#include "mc/deps/input/TouchTurnState.h"
10
11// auto generated forward declare list
12// clang-format off
13class BindingFactory;
14class InputEventQueue;
15class RectangleArea;
16class TouchControl;
23// clang-format on
24
25class TouchControlSet {
26public:
27 // member variables
28 // NOLINTBEGIN
29 ::ll::TypedStorage<8, 24, ::TouchPointResults> mTouchPointResults;
30 ::ll::TypedStorage<8, 24, ::std::vector<::std::unique_ptr<::TouchControl>>> mControls;
31 ::ll::TypedStorage<8, 8, ::TouchTurnInteractControl*> mTurnInteractControl;
32 ::ll::TypedStorage<8, 8, ::TouchMoveAndTurnInteractControl*> mTouchMoveAndTurnInteractControl;
33 ::ll::TypedStorage<4, 4, int> mScreenWidth;
34 ::ll::TypedStorage<4, 4, int> mScreenHeight;
35 ::ll::TypedStorage<8, 8, uint64> mControlOptionEditorId;
36 ::ll::TypedStorage<4, 4, ::TouchTurnState> mPrevState;
37 ::ll::TypedStorage<8, 32, ::TouchTurnControlState> mPrevTouchTurnControlState;
38 ::ll::TypedStorage<8, 120, ::TouchMoveAndTurnControlState> mPrevTouchMoveAndTurnControlState;
39 ::ll::TypedStorage<8, 24, ::std::vector<::std::pair<uint, int>>> mActivePointers;
40 // NOLINTEND
41
42public:
43 // member functions
44 // NOLINTBEGIN
45 MCAPI void addConditionalGuiPassthrough(
46 ::BindingFactory const& bindingFactory,
47 uint areaBindingName,
48 ::std::string const& buttonName,
49 uint conditionName,
50 bool consumeInput
51 );
52
53 MCAPI void addCustomZone(::BindingFactory const& bindingFactory, uint areaBindingName, uint conditionName);
54
55 MCAPI void addGlyphButton(::BindingFactory const& bindingFactory, ::TouchGlyphButtonBinding const& binding);
56
57 MCAPI void addMoveAndTurnInteract(
58 ::TouchControlConfig const& touchControlConfig,
59 ::std::function<::std::vector<::RectangleArea>()> inactiveAreas
60 );
61
62 MCAPI void
63 addTapOrHoldGlyphButton(::BindingFactory const& bindingFactory, ::TouchTapOrHoldGlyphButtonBinding const& binding);
64
65 MCAPI void addTextButton(::BindingFactory const& bindingFactory, ::TouchTextButtonBinding const& binding);
66
67 MCAPI void addTouchControlEditor(
68 ::BindingFactory const& bindingFactory,
69 uint areaBindingName,
70 uint mainPanelAreaBindingName,
71 uint subPanelAreaBindingName,
72 uint conditionBindingName
73 );
74
75 MCAPI void addTurnInteract(
76 ::TouchControlConfig const& touchControlConfig,
77 ::std::function<::std::vector<::RectangleArea>()> inactiveAreas
78 );
79
80 MCAPI void clearControls(::InputEventQueue& eventQueue);
81
82 MCAPI ~TouchControlSet();
83 // NOLINTEND
84
85public:
86 // destructor thunk
87 // NOLINTBEGIN
88 MCAPI void $dtor();
89 // NOLINTEND
90};
Definition BindingFactory.h:5
Definition InputEventQueue.h:5
Definition TouchControlSet.h:5
Definition TouchControl.h:5
Definition TouchMoveAndTurnInteractControl.h:5
Definition TouchTurnInteractControl.h:5
Definition TouchControlConfig.h:5
Definition TouchGlyphButtonBinding.h:5
Definition TouchTapOrHoldGlyphButtonBinding.h:5
Definition TouchTextButtonBinding.h:5