Skip to content
LeviMC
English
AutoLightDark
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/NonOwnerPointer.h"
10#include "mc/deps/core/utility/pub_sub/Subscription.h"
11
12// auto generated forward declare list
13// clang-format off
14class IOptionRegistry;
15namespace OreUI { class FocusNavigationController; }
16namespace OreUI { struct GamepadInput; }
17namespace cohtml { class View; }
18// clang-format on
19
20namespace OreUI {
21
23public:
24 // member variables
25 // NOLINTBEGIN
26 ::ll::TypedStorage<4, 68, ::OreUI::GamepadState> mGamepadState;
27 ::ll::TypedStorage<8, 896, ::OreUI::GamepadEventThrottler> mEventThrottler;
28 ::ll::TypedStorage<1, 1, bool> mSwapABButtons;
29 ::ll::TypedStorage<1, 1, bool> mSwapXYButtons;
30 ::ll::TypedStorage<8, 16, ::Bedrock::PubSub::Subscription> mSwapABOptionSubscription;
31 ::ll::TypedStorage<8, 16, ::Bedrock::PubSub::Subscription> mSwapXYOptionSubscription;
32 ::ll::TypedStorage<8, 24, ::Bedrock::NonOwnerPointer<::OreUI::FocusNavigationController>> mFocusController;
33 // NOLINTEND
34
35public:
36 // prevent constructor by default
37 GamepadInputHandler();
38
39public:
40 // member functions
41 // NOLINTBEGIN
42 MCNAPI explicit GamepadInputHandler(::IOptionRegistry& options);
43
45 ::cohtml::View& view,
46 ::OreUI::GamepadMode gamepadMode,
47 ::OreUI::GamepadInput const& gamepadInput
48 );
49
50 MCNAPI void
51 handle(::OreUI::GamepadInput const& gamepadInput, ::cohtml::View& view, ::OreUI::GamepadMode gamepadMode);
52
54 // NOLINTEND
55
56public:
57 // constructor thunks
58 // NOLINTBEGIN
59 MCNAPI void* $ctor(::IOptionRegistry& options);
60 // NOLINTEND
61
62public:
63 // destructor thunk
64 // NOLINTBEGIN
65 MCNAPI void $dtor();
66 // NOLINTEND
67};
68
69} // namespace OreUI
Definition IOptionRegistry.h:5
Definition FocusNavigationController.h:7
Definition GamepadInputHandler.h:7
MCAPI GamepadInputHandler(::IOptionRegistry &options)
MCAPI void _triggerButtonEvents(::cohtml::View &view, ::OreUI::GamepadMode gamepadMode, ::OreUI::GamepadInput const &gamepadInput)
MCAPI void handle(::OreUI::GamepadInput const &gamepadInput, ::cohtml::View &view, ::OreUI::GamepadMode gamepadMode)
MCAPI void * $ctor(::IOptionRegistry &options)
Definition View.h:7
Definition GamepadInput.h:7