LeviLamina
Loading...
Searching...
No Matches
RebindActionDataProvider.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/client/settings/IActionDataProvider.h"
7#include "mc/deps/core/utility/pub_sub/Subscription.h"
8#include "mc/deps/input/InputMode.h"
9#include "mc/deps/input/enums/ButtonState.h"
10#include "mc/deps/input/enums/RawInputType.h"
11
12// auto generated forward declare list
13// clang-format off
14class IOptions;
15class RemappingLayout;
16namespace Settings { class Eventing; }
17namespace Settings::RegistryBuilder { class IBuilderContext; }
18// clang-format on
19
20namespace Settings {
21
22class RebindActionDataProvider : public ::Settings::IActionDataProvider {
23public:
24 // member variables
25 // NOLINTBEGIN
26 ::ll::TypedStorage<8, 8, uint64> mIndex;
27 ::ll::TypedStorage<4, 4, ::InputMode> mInputMode;
28 ::ll::TypedStorage<8, 8, ::RemappingLayout&> mLayout;
29 ::ll::TypedStorage<8, 8, ::IOptions&> mOptions;
30 ::ll::TypedStorage<8, 8, ::Settings::Eventing&> mEventing;
31 ::ll::TypedStorage<8, 8, ::Settings::RegistryBuilder::IBuilderContext&> mContext;
32 ::ll::TypedStorage<8, 16, ::Bedrock::PubSub::Subscription> mRawInputEventSubscription;
33 ::ll::TypedStorage<8, 16, ::Bedrock::PubSub::Subscription> mKeyboardTypeChangedSubscription;
34 ::ll::TypedStorage<8, 16, ::Bedrock::PubSub::Subscription> mKeyChangedSubscription;
35 ::ll::TypedStorage<1, 1, bool> mIsDirty;
36 // NOLINTEND
37
38public:
39 // prevent constructor by default
40 RebindActionDataProvider& operator=(RebindActionDataProvider const&);
41 RebindActionDataProvider(RebindActionDataProvider const&);
42 RebindActionDataProvider();
43
44public:
45 // virtual functions
46 // NOLINTBEGIN
47 virtual bool flush() /*override*/;
48
49 virtual bool canModify() const /*override*/;
50
51 virtual ~RebindActionDataProvider() /*override*/ = default;
52 // NOLINTEND
53
54public:
55 // member functions
56 // NOLINTBEGIN
57 MCAPI RebindActionDataProvider(
58 uint64 index,
59 ::InputMode inputMode,
60 ::RemappingLayout& layout,
61 ::Settings::RegistryBuilder::IBuilderContext& context
62 );
63
64 MCAPI void _disableRawInputEventListener();
65
66 MCAPI void _rebindInput(int id, ::RawInputType keyType, ::ButtonState buttonState);
67 // NOLINTEND
68
69public:
70 // constructor thunks
71 // NOLINTBEGIN
72 MCAPI void* $ctor(
73 uint64 index,
74 ::InputMode inputMode,
75 ::RemappingLayout& layout,
76 ::Settings::RegistryBuilder::IBuilderContext& context
77 );
78 // NOLINTEND
79
80public:
81 // virtual function thunks
82 // NOLINTBEGIN
83 MCAPI bool $flush();
84
85 MCFOLD bool $canModify() const;
86 // NOLINTEND
87
88public:
89 // vftables
90 // NOLINTBEGIN
91 MCNAPI static void** $vftable();
92 // NOLINTEND
93};
94
95} // namespace Settings
Definition IOptions.h:5
Definition RemappingLayout.h:5
Definition Eventing.h:7
Definition RebindActionDataProvider.h:7
static MCAPI void ** $vftable()
Definition IBuilderContext.h:7