LeviLamina
Loading...
Searching...
No Matches
GamepadInputHandler.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/client/gui/oreui/input/GamepadEventThrottler.h"
7#include "mc/client/gui/oreui/input/GamepadMode.h"
8#include "mc/client/gui/oreui/input/GamepadState.h"
9#include "mc/deps/core/utility/pub_sub/Subscription.h"
10
11// auto generated forward declare list
12// clang-format off
13class IOptionRegistry;
14namespace OreUI { struct GamepadInput; }
15namespace cohtml { class View; }
16// clang-format on
17
18namespace OreUI {
19
21public:
22 // member variables
23 // NOLINTBEGIN
24 ::ll::TypedStorage<4, 64, ::OreUI::GamepadState> mGamepadState;
25 ::ll::TypedStorage<8, 784, ::OreUI::GamepadEventThrottler> mEventThrottler;
26 ::ll::TypedStorage<1, 1, bool> mSwapABButtons;
27 ::ll::TypedStorage<1, 1, bool> mSwapXYButtons;
28 ::ll::TypedStorage<8, 16, ::Bedrock::PubSub::Subscription> mSwapABOptionSubscription;
29 ::ll::TypedStorage<8, 16, ::Bedrock::PubSub::Subscription> mSwapXYOptionSubscription;
30 // NOLINTEND
31
32public:
33 // prevent constructor by default
34 GamepadInputHandler();
35
36public:
37 // member functions
38 // NOLINTBEGIN
39 MCAPI explicit GamepadInputHandler(::IOptionRegistry& options);
40
41 MCAPI void _triggerButtonEvents(
42 ::cohtml::View& view,
43 ::OreUI::GamepadMode gamepadMode,
44 ::OreUI::GamepadInput const& gamepadInput
45 );
46
47 MCAPI void
48 handle(::OreUI::GamepadInput const& gamepadInput, ::cohtml::View& view, ::OreUI::GamepadMode gamepadMode);
49 // NOLINTEND
50
51public:
52 // constructor thunks
53 // NOLINTBEGIN
54 MCAPI void* $ctor(::IOptionRegistry& options);
55 // NOLINTEND
56};
57
58} // namespace OreUI
Definition IOptionRegistry.h:5
Definition GamepadInputHandler.h:7
Definition View.h:7
Definition GamepadInput.h:7