3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/deps/core/threading/TaskGroup.h"
7#include "mc/deps/core/threading/XTaskQueuePort.h"
8#include "mc/deps/core/threading/XTaskQueueRegistrationToken.h"
9#include "mc/external/game_input/GameInputDeviceStatus.h"
10#include "mc/input/GameControllerHandler.h"
11#include "mc/platform/Result.h"
12#include "mc/platform/threading/Mutex.h"
27 ::ll::TypedStorage<8, 8, uint64> mDeviceStatusChangedToken;
28 ::ll::TypedStorage<8, 8, ::XTaskQueueRegistrationToken> mUserDeviceAssociationChangedToken;
29 ::ll::TypedStorage<8, 8, ::XTaskQueueRegistrationToken> mTaskSubmittedCallbackToken;
30 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::HIDController>> mHIDController;
31 ::ll::TypedStorage<2, 2, short> mScreenWidth;
32 ::ll::TypedStorage<2, 2, short> mScreenHeight;
36 ::std::unique_ptr<::GameInput::v2::IGameInput, ::Bedrock::ComAdapter<::GameInput::v2::IGameInput>::Deleter>>
38 ::ll::TypedStorage<8, 80, ::Bedrock::Threading::Mutex> mPlayerInputsLock;
39 ::ll::TypedStorage<8, 16, ::std::map<int, ::GameCorePlayerInput>> mPlayerInputs;
40 ::ll::TypedStorage<8, 336, ::TaskGroup> mTaskGroup;
41 ::ll::TypedStorage<8, 8, ::XTaskQueueObject*> mTaskQueue;
46 GameControllerHandler_GameCore();
51 virtual ~GameControllerHandler_GameCore() ;
53 virtual void refresh() ;
55 virtual float normalizeAxis(
float raw,
float deadzone) ;
57 virtual void normalizeAxes(
float& ioX,
float& ioY,
float deadzone) ;
63 MCAPI GameControllerHandler_GameCore(
64 ::std::shared_ptr<::HIDController>
const& hidController,
69 MCAPI
void _onDeviceStatusChanged(
70 ::GameInput::v2::IGameInputDevice* device,
71 ::GameInput::v2::GameInputDeviceStatus currentStatus
74 MCAPI ::Bedrock::Result<void> initialize();
80 MCAPI static ::std::string _generateGameInputKindString(::GameInput::v2::GameInputDeviceInfo
const& deviceInfo);
82 MCAPI
static void _onDeviceStatusChangedCallback(
85 ::GameInput::v2::IGameInputDevice* device,
87 ::GameInput::v2::GameInputDeviceStatus currentStatus,
88 ::GameInput::v2::GameInputDeviceStatus
91 MCAPI
static void _taskSubmittedCallback(
void* context, ::XTaskQueueObject* taskQueue, ::XTaskQueuePort port);
97 MCAPI
void*
$ctor(::std::shared_ptr<::HIDController>
const& hidController,
short screenWidth,
short screenHeight);
109 MCAPI
void $refresh();
111 MCAPI
float $normalizeAxis(
float raw,
float deadzone);
113 MCAPI
void $normalizeAxes(
float& ioX,
float& ioY,
float deadzone);
Definition GameControllerHandler_GameCore.h:5
static MCAPI void ** $vftable()
Definition GameControllerHandler.h:5
Definition HIDController.h:5
Definition XTaskQueueObject.h:5