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
13namespace OreUI { struct GamepadInput; }
14namespace cohtml { class View; }
15// clang-format on
16
17namespace OreUI {
18
20public:
21 // member variables
22 // NOLINTBEGIN
23 ::ll::TypedStorage<4, 60, ::OreUI::GamepadState> mGamepadState;
24 ::ll::TypedStorage<8, 160, ::OreUI::GamepadEventThrottler> mEventThrottler;
25 ::ll::TypedStorage<1, 1, bool> mSwapABButtons;
26 ::ll::TypedStorage<1, 1, bool> mSwapXYButtons;
27 ::ll::TypedStorage<8, 16, ::Bedrock::PubSub::Subscription> mSwapABOptionSubscription;
28 ::ll::TypedStorage<8, 16, ::Bedrock::PubSub::Subscription> mSwapXYOptionSubscription;
29 // NOLINTEND
30
31public:
32 // member functions
33 // NOLINTBEGIN
34 MCAPI void _triggerButtonEvents(
35 ::cohtml::View& view,
36 ::OreUI::GamepadMode gamepadMode,
37 ::OreUI::GamepadInput const& gamepadInput
38 );
39
40 MCAPI void
41 handle(::OreUI::GamepadInput const& gamepadInput, ::cohtml::View& view, ::OreUI::GamepadMode gamepadMode);
42 // NOLINTEND
43};
44
45} // namespace OreUI
Definition GamepadInputHandler.h:7
Definition View.h:7
Definition GamepadInput.h:7