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 // prevent constructor by default
26
27public:
28 // virtual functions
29 // NOLINTBEGIN
30 virtual ~TouchControl();
31
32 virtual uint getHoldButtonId() const;
33
34 virtual int getActivePointerId() const;
35
36 virtual bool releaseOnClear() const;
37
38 virtual void render(::InputRenderContext& context) const;
39
40 virtual void tick(::InputEventQueue& eventQueue, ::TouchPointResults& touchPointResults, int yAxisInversionFactor);
41
42 virtual void release(::InputEventQueue& eventQueue);
43 // NOLINTEND
44
45public:
46 // member functions
47 // NOLINTBEGIN
48 MCAPI explicit TouchControl(::std::function<::RectangleArea()> area);
49
50 MCAPI bool canUpdateActivePointer(::TouchPointResults& touchPointResults, int pointerId, float& x, float& y) const;
51 // NOLINTEND
52
53public:
54 // constructor thunks
55 // NOLINTBEGIN
56 MCAPI void* $ctor(::std::function<::RectangleArea()> area);
57 // NOLINTEND
58
59public:
60 // destructor thunk
61 // NOLINTBEGIN
62 MCAPI void $dtor();
63 // NOLINTEND
64
65public:
66 // virtual function thunks
67 // NOLINTBEGIN
68 MCFOLD uint $getHoldButtonId() const;
69
70 MCFOLD int $getActivePointerId() const;
71
72 MCFOLD bool $releaseOnClear() const;
73
74 MCFOLD void $render(::InputRenderContext& context) const;
75
76 MCFOLD void $tick(::InputEventQueue& eventQueue, ::TouchPointResults& touchPointResults, int yAxisInversionFactor);
77
78 MCFOLD void $release(::InputEventQueue& eventQueue);
79 // NOLINTEND
80
81public:
82 // vftables
83 // NOLINTBEGIN
84 MCNAPI static void** $vftable();
85 // NOLINTEND
86};
Definition InputEventQueue.h:5
Definition InputRenderContext.h:5
Definition TouchControl.h:5
static MCAPI void ** $vftable()
Definition TouchPointResults.h:5