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;
17struct ControllerIDtoClientMap;
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 // virtual functions
34 // NOLINTBEGIN
35 virtual ~TouchMapper() /*override*/;
36
37 virtual void setMapping(
38 ::InputEventQueue& eventQueue,
39 ::BindingFactory const& bindingFactory,
40 ::InputMapping const& inputMapping,
41 int controllerId
42 ) /*override*/;
43
44 virtual void clearMapping(int controllerId) /*override*/;
45
46 virtual bool tick(
47 ::InputEventQueue& eventQueue,
48 ::Bedrock::NotNullNonOwnerPtr<::ControllerIDtoClientMap> const& map
49 ) /*override*/;
50
51 virtual void clearInputDeviceQueue() /*override*/;
52
53 virtual ::InputMode getInputMode() const /*override*/;
54
55 virtual void render(::InputRenderContext& context) const /*override*/;
56
57 virtual void setWindowSize(int width, int height) /*override*/;
58
59 virtual void changeControllerId(int oldId, int newId) /*override*/;
60 // NOLINTEND
61
62public:
63 // destructor thunk
64 // NOLINTBEGIN
65 MCAPI void $dtor();
66 // NOLINTEND
67
68public:
69 // virtual function thunks
70 // NOLINTBEGIN
71 MCAPI void $setMapping(
72 ::InputEventQueue& eventQueue,
73 ::BindingFactory const& bindingFactory,
74 ::InputMapping const& inputMapping,
75 int controllerId
76 );
77
78 MCAPI void $clearMapping(int controllerId);
79
80 MCAPI bool
81 $tick(::InputEventQueue& eventQueue, ::Bedrock::NotNullNonOwnerPtr<::ControllerIDtoClientMap> const& map);
82
83 MCAPI void $clearInputDeviceQueue();
84
85 MCFOLD ::InputMode $getInputMode() const;
86
87 MCFOLD void $render(::InputRenderContext& context) const;
88
89 MCFOLD void $setWindowSize(int width, int height);
90
91 MCAPI void $changeControllerId(int oldId, int newId);
92 // NOLINTEND
93
94public:
95 // vftables
96 // NOLINTBEGIN
97 MCNAPI static void** $vftable();
98 // NOLINTEND
99};
Definition BindingFactory.h:5
Definition InputDeviceMapper.h:5
Definition InputEventQueue.h:5
Definition InputRenderContext.h:5
Definition TouchControlSet.h:5
Definition TouchMapper.h:5
static MCAPI void ** $vftable()
Definition InputMapping.h:5