LeviLamina
Loading...
Searching...
No Matches
GameControllerHandler.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/input/interface/GameControllerButtonState.h"
7#include "mc/deps/input/interface/GameControllerErrorType.h"
8
10public:
11 // GameControllerHandler inner types define
12 using InputButton = uint;
13
14 using ButtonMap = ::std::unordered_map<uint, int>;
15
16 using ButtonStateMap = ::std::unordered_map<uint, ::GameControllerButtonState>;
17
18public:
19 // member variables
20 // NOLINTBEGIN
21 ::ll::TypedStorage<8, 64, ::std::unordered_map<uint, int>> mButtonMap;
22 ::ll::TypedStorage<8, 24, ::std::vector<float>> mLeftTrigger;
23 ::ll::TypedStorage<8, 24, ::std::vector<float>> mRightTrigger;
24 ::ll::TypedStorage<8, 32, ::std::vector<bool>> mLeftStickTouched;
25 ::ll::TypedStorage<8, 32, ::std::vector<bool>> mRightStickTouched;
26 ::ll::TypedStorage<8, 24, ::std::vector<::std::unordered_map<uint, ::GameControllerButtonState>>> mButtonState;
27 ::ll::TypedStorage<4, 16, uint[4]> mInputProcessResult;
28 ::ll::TypedStorage<8, 16, ::std::thread> mPollingThread;
29 ::ll::TypedStorage<1, 1, ::std::atomic<bool>> mJoinThreads;
30 // NOLINTEND
31
32public:
33 // virtual functions
34 // NOLINTBEGIN
35 virtual ~GameControllerHandler();
36
37 virtual void refresh() = 0;
38
39 virtual void refresh(bool isInGame);
40
41 virtual void shutdown();
42
43 virtual ::GameControllerErrorType checkPlatformSpecificControllerError();
44
45 virtual float normalizeAxis(float raw, float deadzone);
46
47 virtual void normalizeAxes(float& ioX, float& ioY, float deadzone) = 0;
48 // NOLINTEND
49
50public:
51 // member functions
52 // NOLINTBEGIN
53 MCAPI GameControllerHandler();
54 // NOLINTEND
55
56public:
57 // constructor thunks
58 // NOLINTBEGIN
59 MCAPI void* $ctor();
60 // NOLINTEND
61
62public:
63 // destructor thunk
64 // NOLINTBEGIN
65 MCAPI void $dtor();
66 // NOLINTEND
67
68public:
69 // virtual function thunks
70 // NOLINTBEGIN
71 MCFOLD void $refresh(bool isInGame);
72
73 MCFOLD void $shutdown();
74
75 MCFOLD ::GameControllerErrorType $checkPlatformSpecificControllerError();
76
77 MCFOLD float $normalizeAxis(float raw, float deadzone);
78 // NOLINTEND
79
80public:
81 // vftables
82 // NOLINTBEGIN
83 MCNAPI static void** $vftable();
84 // NOLINTEND
85};
Definition GameControllerHandler.h:5
static MCAPI void ** $vftable()