LeviLamina
Loading...
Searching...
No Matches
TouchControl.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated forward declare list
6// clang-format off
9class RectangleArea;
11// clang-format on
12
13class TouchControl {
14public:
15 // member variables
16 // NOLINTBEGIN
17 ::ll::TypedStorage<8, 64, ::std::function<::RectangleArea()>> mArea;
18 ::ll::TypedStorage<4, 4, int> mScreenWidth;
19 ::ll::TypedStorage<4, 4, int> mScreenHeight;
20 ::ll::TypedStorage<8, 32, ::std::string> mCurrentLabel;
21 // NOLINTEND
22
23public:
24 // virtual functions
25 // NOLINTBEGIN
26 virtual ~TouchControl();
27
28 virtual uint getHoldButtonId() const;
29
30 virtual int getActivePointerId() const;
31
32 virtual bool releaseOnClear() const;
33
34 virtual void render(::InputRenderContext& context) const;
35
36 virtual void tick(::InputEventQueue& eventQueue, ::TouchPointResults& touchPointResults, int yAxisInversionFactor);
37
38 virtual void release(::InputEventQueue& eventQueue);
39 // NOLINTEND
40
41public:
42 // member functions
43 // NOLINTBEGIN
44 MCAPI int getNewActivePointer(
45 ::TouchPointResults& touchPointResults,
46 ::RectangleArea const& area,
47 float& x,
48 float& y,
49 ::std::vector<::RectangleArea> const& areasToIgnore,
50 ::std::vector<int> const& pointerIdsToIgnore,
51 bool consumeInput
52 ) const;
53 // NOLINTEND
54
55public:
56 // destructor thunk
57 // NOLINTBEGIN
58 MCAPI void $dtor();
59 // NOLINTEND
60
61public:
62 // virtual function thunks
63 // NOLINTBEGIN
64 MCFOLD uint $getHoldButtonId() const;
65
66 MCFOLD int $getActivePointerId() const;
67
68 MCFOLD bool $releaseOnClear() const;
69
70 MCFOLD void $render(::InputRenderContext& context) const;
71
72 MCFOLD void $tick(::InputEventQueue& eventQueue, ::TouchPointResults& touchPointResults, int yAxisInversionFactor);
73
74 MCFOLD void $release(::InputEventQueue& eventQueue);
75 // NOLINTEND
76
77public:
78 // vftables
79 // NOLINTBEGIN
80 MCNAPI static void** $vftable();
81 // NOLINTEND
82};
Definition InputEventQueue.h:5
Definition InputRenderContext.h:5
Definition RectangleArea.h:5
Definition TouchControl.h:5
static MCAPI void ** $vftable()
Definition TouchPointResults.h:5