LeviLamina
Loading...
Searching...
No Matches
GameController.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/common/SubClientId.h"
7#include "mc/deps/input/interface/IGameController.h"
8#include "mc/platform/brstd/simple_circular_queue.h"
9
10// auto generated forward declare list
11// clang-format off
13// clang-format on
14
15class GameController : public ::IGameController {
16public:
17 // GameController inner types declare
18 // clang-format off
19 struct EventQueue;
20 // clang-format on
21
22 // GameController inner types define
23 struct EventQueue {
24 public:
25 // member variables
26 // NOLINTBEGIN
27 ::ll::TypedStorage<8, 8, void const*> mToken;
28 ::ll::TypedStorage<8, 31216, ::brstd::simple_circular_queue<::GameControllerEvent, 600>> mEvents;
29 // NOLINTEND
30 };
31
32public:
33 // member variables
34 // NOLINTBEGIN
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;
43 // NOLINTEND
44
45public:
46 // virtual functions
47 // NOLINTBEGIN
48 virtual bool hasEvents(void const* token) const /*override*/;
49
50 virtual ::GameControllerEvent getNextEvent(void const* token) /*override*/;
51
52 virtual int getId() const /*override*/;
53
54 virtual bool isConnected() const /*override*/;
55
56 virtual bool isAdequateController() const /*override*/;
57
58 virtual void pairControllerToClient(::SubClientId clientId) /*override*/;
59
60 virtual void unpairControllerFromClient() /*override*/;
61
62 virtual bool isControllerPairedToClient() const /*override*/;
63
64 virtual ::std::optional<::SubClientId> getPairedClientId() const /*override*/;
65
66 virtual ~GameController() /*override*/ = default;
67 // NOLINTEND
68
69public:
70 // member functions
71 // NOLINTBEGIN
72 MCAPI void _feedConnectionStateChange(bool newConnectionState);
73 // NOLINTEND
74
75public:
76 // virtual function thunks
77 // NOLINTBEGIN
78 MCAPI bool $hasEvents(void const* token) const;
79
80 MCAPI ::GameControllerEvent $getNextEvent(void const* token);
81
82 MCFOLD int $getId() const;
83
84 MCFOLD bool $isConnected() const;
85
86 MCFOLD bool $isAdequateController() const;
87
88 MCAPI void $pairControllerToClient(::SubClientId clientId);
89
90 MCFOLD void $unpairControllerFromClient();
91
92 MCAPI bool $isControllerPairedToClient() const;
93
94 MCAPI ::std::optional<::SubClientId> $getPairedClientId() const;
95 // NOLINTEND
96
97public:
98 // vftables
99 // NOLINTBEGIN
100 MCNAPI static void** $vftable();
101 // NOLINTEND
102};
Definition GameController.h:5
static MCAPI void ** $vftable()
Definition IGameController.h:5
Definition GameControllerEvent.h:5
Definition GameController.h:13