3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/deps/core/utility/NonOwnerPointer.h"
7#include "mc/deps/input/InputBindingMode.h"
8#include "mc/deps/input/InputMode.h"
34 ::ll::TypedStorage<8, 24, ::Bedrock::NotNullNonOwnerPtr<::IClientInstance>> mClient;
35 ::ll::TypedStorage<8, 8, ::InputHandler&> mInputHandler;
36 ::ll::TypedStorage<4, 4, ::InputBindingMode> mInputBindingMode;
37 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::ClientBindingFactory>> mBindingFactory;
38 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::ClientInputMappingFactory>> mMappingFactory;
39 ::ll::TypedStorage<8, 32, ::std::string> mExpectedInGameInputMode;
40 ::ll::TypedStorage<1, 1, bool> mIsFlying;
41 ::ll::TypedStorage<1, 1, bool> mIsSneaking;
42 ::ll::TypedStorage<1, 1, bool> mIsSprinting;
43 ::ll::TypedStorage<1, 1, bool> mIsSwimming;
44 ::ll::TypedStorage<1, 1, bool> mIsInWater;
45 ::ll::TypedStorage<1, 1, bool> mIsExpediateEmoteActive;
46 ::ll::TypedStorage<1, 1, bool> mIsInAscendableBlock;
47 ::ll::TypedStorage<1, 1, bool> mIsOnDescendableBlock;
48 ::ll::TypedStorage<1, 1, bool> mIsCreativeMode;
49 ::ll::TypedStorage<1, 1, bool> mIsSpectatorMode;
50 ::ll::TypedStorage<1, 1, bool> mInteractActive;
51 ::ll::TypedStorage<1, 1, bool> mHasMobEffects;
52 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::ClientInputHandlerProxy>> mProxy;
57 ClientInputHandler& operator=(ClientInputHandler
const&);
58 ClientInputHandler(ClientInputHandler
const&);
64 MCAPI ClientInputHandler(
65 ::Bedrock::NotNullNonOwnerPtr<::IClientInstance>
const& client,
66 ::InputHandler& inputHandler,
67 ::IGameModuleApp& gameModuleApp
70 MCAPI ::Actor* _interactWithEntity()
const;
72 MCAPI ::std::string _interactWithImmersiveReader()
const;
74 MCAPI ::ItemStack
const& _interactWithItem()
const;
76 MCAPI
bool _shouldUseGameInputMapping()
const;
78 MCFOLD
bool allowInteract()
const;
80 MCAPI
bool allowPicking()
const;
82 MCAPI
bool canInteract()
const;
84 MCAPI
bool canPaddle()
const;
86 MCAPI
void clearInputDeviceQueues();
88 MCAPI
void clearInvalidDownKeys();
90 MCFOLD ::BindingFactory& getBindingFactory();
92 MCAPI ::std::string getBoatExitText()
const;
94 MCAPI ::InputMode getCurrentInputMode()
const;
96 MCAPI
void getCursorPos(
float& xCursor,
float& yCursor)
const;
98 MCFOLD ::std::string
const& getExpectedInGameInputMode()
const;
100 MCFOLD ::InputBindingMode getInputBindingMode();
102 MCAPI
bool getInteractActive()
const;
104 MCAPI ::std::string getInteractText()
const;
106 MCAPI
bool getSplitscreenJoinPromptVisible()
const;
108 MCAPI
bool hasInteractText()
const;
110 MCAPI
bool isBlockSelectToggled()
const;
112 MCFOLD
bool isCreativeMode()
const;
114 MCAPI
bool isTouchGameplayAllowed()
const;
116 MCAPI
void onConfigChanged(::Config
const& c);
118 MCAPI
void onMobEffectsChanged(::MobEffectsLayout
const& layout);
120 MCAPI
void popInputMapping(
bool inGame);
122 MCAPI
void pushInputMapping(
bool inGame);
124 MCAPI
void releaseButtonsAndSticks();
126 MCAPI
void render(::ScreenContext& screenContext);
128 MCAPI
void resetPlayerState();
130 MCAPI
void setBlockSelectToggle(
bool value);
132 MCAPI
void setDisableInput(
bool disable);
134 MCAPI
void setInputBindingMode(::InputBindingMode mode);
136 MCAPI
void setSuspendDirectionalInput(
bool suspendDirectionalInput);
138 MCAPI
void setSuspendInput(
bool suspendInput);
140 MCAPI
bool showBoatExit()
const;
142 MCAPI
bool showCodeBuilder()
const;
144 MCAPI
bool showImmersiveReader()
const;
146 MCAPI
void updateInputMapping();
148 MCAPI
bool updateInputMode(::std::string
const& mode);
150 MCAPI
void updateInteractActiveState(
bool value);
152 MCAPI
void updatePlayerState(
153 ::gsl::not_null<::IClientInstance const*> client,
154 ::MovementAbilitiesComponent
const& abilities,
155 ::MobEffectsComponent
const& mobEffects,
156 ::ActorDataFlagComponent
const& synchedActorData,
157 ::MoveInputComponent& moveInput,
162 MCAPI
bool useFreeformPickDirection()
const;
164 MCAPI ~ClientInputHandler();
171 ::Bedrock::NotNullNonOwnerPtr<::IClientInstance>
const& client,
172 ::InputHandler& inputHandler,
173 ::IGameModuleApp& gameModuleApp
Definition BindingFactory.h:5
Definition ClientBindingFactory.h:5
Definition IClientInstance.h:5
Definition IGameModuleApp.h:5
Definition ItemStack.h:35
Definition MobEffectsLayout.h:5
Definition ScreenContext.h:5
Definition ActorDataFlagComponent.h:10
Definition MobEffectsComponent.h:10
Definition MovementAbilitiesComponent.h:8