LeviLamina
Loading...
Searching...
No Matches
TouchMapper.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/utility/NonOwnerPointer.h"
7#include "mc/deps/input/InputDeviceMapper.h"
8#include "mc/deps/input/InputMode.h"
9
10// auto generated forward declare list
11// clang-format off
12class BindingFactory;
13class InputEventQueue;
15class RectangleArea;
16class TouchControlSet;
18struct InputMapping;
19// clang-format on
20
21class TouchMapper : public ::InputDeviceMapper {
22public:
23 // member variables
24 // NOLINTBEGIN
25 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::TouchControlSet>> mTouchControlSet;
26 ::ll::TypedStorage<4, 4, int> mYAxisInversionFactor;
27 ::ll::TypedStorage<8, 24, ::std::vector<::std::pair<int, int>>> touchIdsWithFlags;
28 ::ll::TypedStorage<8, 64, ::std::function<::std::vector<::RectangleArea>()>> mAreaFunc;
29 ::ll::TypedStorage<4, 4, int> mPrimaryGameControllerId;
30 // NOLINTEND
31
32public:
33 // prevent constructor by default
34 TouchMapper();
35
36public:
37 // virtual functions
38 // NOLINTBEGIN
39 virtual ~TouchMapper() /*override*/ = default;
40
41 virtual void setMapping(
42 ::InputEventQueue& eventQueue,
43 ::BindingFactory const& bindingFactory,
44 ::InputMapping const& inputMapping,
45 int controllerId
46 ) /*override*/;
47
48 virtual void clearMapping(int controllerId) /*override*/;
49
50 virtual bool tick(
51 ::InputEventQueue& eventQueue,
52 ::Bedrock::NotNullNonOwnerPtr<::ControllerIDtoClientMap> const& map
53 ) /*override*/;
54
55 virtual void clearInputDeviceQueue() /*override*/;
56
57 virtual ::InputMode getInputMode() const /*override*/;
58
59 virtual void render(::InputRenderContext& context) const /*override*/;
60
61 virtual void setWindowSize(int width, int height) /*override*/;
62
63 virtual void changeControllerId(int oldId, int newId) /*override*/;
64 // NOLINTEND
65
66public:
67 // member functions
68 // NOLINTBEGIN
69 MCAPI explicit TouchMapper(::std::function<::std::vector<::RectangleArea>()> areaFunc);
70 // NOLINTEND
71
72public:
73 // constructor thunks
74 // NOLINTBEGIN
75 MCAPI void* $ctor(::std::function<::std::vector<::RectangleArea>()> areaFunc);
76 // NOLINTEND
77
78public:
79 // virtual function thunks
80 // NOLINTBEGIN
81 MCAPI void $setMapping(
82 ::InputEventQueue& eventQueue,
83 ::BindingFactory const& bindingFactory,
84 ::InputMapping const& inputMapping,
85 int controllerId
86 );
87
88 MCAPI void $clearMapping(int controllerId);
89
90 MCAPI bool
91 $tick(::InputEventQueue& eventQueue, ::Bedrock::NotNullNonOwnerPtr<::ControllerIDtoClientMap> const& map);
92
93 MCAPI void $clearInputDeviceQueue();
94
95 MCFOLD ::InputMode $getInputMode() const;
96
97 MCFOLD void $render(::InputRenderContext& context) const;
98
99 MCFOLD void $setWindowSize(int width, int height);
100
101 MCAPI void $changeControllerId(int oldId, int newId);
102 // NOLINTEND
103
104public:
105 // vftables
106 // NOLINTBEGIN
107 MCNAPI static void** $vftable();
108 // NOLINTEND
109};
Definition BindingFactory.h:5
Definition InputDeviceMapper.h:5
Definition InputEventQueue.h:5
Definition InputRenderContext.h:5
Definition RectangleArea.h:5
Definition TouchControlSet.h:5
Definition TouchMapper.h:5
static MCAPI void ** $vftable()
Definition ControllerIDtoClientMap.h:5
Definition InputMapping.h:5