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 // NOLINTEND
66
67public:
68 // virtual function thunks
69 // NOLINTBEGIN
70 MCAPI bool $hasEvents(void const* token) const;
71
72 MCAPI ::GameControllerEvent $getNextEvent(void const* token);
73
74 MCFOLD int $getId() const;
75
76 MCFOLD bool $isConnected() const;
77
78 MCFOLD bool $isAdequateController() const;
79
80 MCAPI void $pairControllerToClient(::SubClientId clientId);
81
82 MCFOLD void $unpairControllerFromClient();
83
84 MCFOLD bool $isControllerPairedToClient() const;
85
86 MCAPI ::std::optional<::SubClientId> $getPairedClientId() const;
87 // NOLINTEND
88
89public:
90 // vftables
91 // NOLINTBEGIN
92 MCNAPI static void** $vftable();
93 // NOLINTEND
94};
Definition GameController.h:5
static MCAPI void ** $vftable()
Definition IGameController.h:5
Definition GameControllerEvent.h:5
Definition GameController.h:13