3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/common/SubClientId.h"
7#include "mc/deps/input/interface/IGameController.h"
8#include "mc/platform/brstd/simple_circular_queue.h"
27 ::ll::TypedStorage<8, 8, void const*> mToken;
28 ::ll::TypedStorage<8, 31216, ::brstd::simple_circular_queue<::GameControllerEvent, 600>> mEvents;
35 ::ll::TypedStorage<8, 24, ::std::vector<::GameController::EventQueue>> mEventQueues;
36 ::ll::TypedStorage<1, 1, bool> mIsConnected;
37 ::ll::TypedStorage<4, 4, int> mControllerId;
38 ::ll::TypedStorage<1, 1, bool> mIsAdequateController;
39 ::ll::TypedStorage<1, 2, ::std::optional<::SubClientId>> mPairedClientId;
40 ::ll::TypedStorage<1, 1, bool> mFoundXboxController;
41 ::ll::TypedStorage<1, 1, bool> mFoundPlaystationController;
42 ::ll::TypedStorage<1, 1, bool> mFoundDualsenseController;
48 virtual bool hasEvents(
void const* token)
const ;
50 virtual ::GameControllerEvent getNextEvent(
void const* token) ;
52 virtual int getId() const ;
54 virtual
bool isConnected() const ;
56 virtual
bool isAdequateController() const ;
58 virtual
void pairControllerToClient(::SubClientId clientId) ;
60 virtual
void unpairControllerFromClient() ;
62 virtual
bool isControllerPairedToClient() const ;
64 virtual ::std::optional<::SubClientId> getPairedClientId() const ;
66 virtual ~GameController() = default;
72 MCAPI
void _feedConnectionStateChange(
bool newConnectionState);
78 MCAPI
bool $hasEvents(
void const* token) const;
80 MCAPI ::GameControllerEvent $getNextEvent(
void const* token);
82 MCFOLD
int $getId() const;
84 MCFOLD
bool $isConnected() const;
86 MCFOLD
bool $isAdequateController() const;
88 MCAPI
void $pairControllerToClient(::SubClientId clientId);
90 MCFOLD
void $unpairControllerFromClient();
92 MCAPI
bool $isControllerPairedToClient() const;
94 MCAPI ::std::optional<::SubClientId> $getPairedClientId() const;
Definition GameController.h:5
static MCAPI void ** $vftable()
Definition IGameController.h:5
Definition GameControllerEvent.h:5
Definition GameController.h:13