LeviLamina
Loading...
Searching...
No Matches
GamePadRemappingLayout.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/client/input/ButtonIndiciesEnum.h"
7#include "mc/client/input/IconSize.h"
8#include "mc/client/input/RemappingLayout.h"
9#include "mc/client/input/TriggerIndiciesEnum.h"
10#include "mc/deps/input/enums/RawInputType.h"
11
12// auto generated forward declare list
13// clang-format off
14class Keymapping;
15// clang-format on
16
18public:
19 // member variables
20 // NOLINTBEGIN
21 ::ll::TypedStorage<8, 16, ::std::string_view> mControllerIconPath;
22 ::ll::TypedStorage<1, 1, bool> mGamepadButtonsXYAreSwapped;
23 ::ll::TypedStorage<1, 1, bool> mGamepadButtonsABAreSwapped;
24 // NOLINTEND
25
26public:
27 // prevent constructor by default
28 GamePadRemappingLayout();
29
30public:
31 // virtual functions
32 // NOLINTBEGIN
33 virtual ~GamePadRemappingLayout() /*override*/;
34
35 virtual void setMappingWithRawInput(::std::string const& action, int key, ::RawInputType type) /*override*/;
36
37 virtual ::std::string getMappedKeyName(int key) const /*override*/;
38
39 virtual ::std::string getMappedKeyName(int key, bool checkUserConfiguredSwap) const /*override*/;
40
41 virtual ::std::string getMappedKeyName(::Keymapping const& keyMapping) const /*override*/;
42
43 virtual ::std::string getSaveString(::std::string const& action) const /*override*/;
44
45 virtual int getAdjustedKey(int key) const /*override*/;
46
47 virtual ::std::string getKeySpriteLocation(int key, ::IconSize iconSize) const /*override*/;
48
49 virtual ::std::string getKeySpriteLocation(::Keymapping const& keyMapping) const /*override*/;
50
51 virtual int _rawKeyToKey(int rawInputKey, ::RawInputType rawInputType) const /*override*/;
52 // NOLINTEND
53
54public:
55 // member functions
56 // NOLINTBEGIN
57 MCAPI GamePadRemappingLayout(bool swapAB, bool swapXY);
58
59 MCAPI ::std::string
60 _getKeySpriteLocationInternal(int key, bool checkUserConfiguredButtonSwapping, ::IconSize iconSize) const;
61
62 MCAPI ::std::string const _getMappedKeyNameInternal(int key, bool checkUserConfiguredButtonSwapping) const;
63
64 MCAPI void _swapGamepadKeyBindings(int key1, int key2);
65
66 MCAPI ::std::string getKeySpriteLocation(::TriggerIndiciesEnum trigger) const;
67
68 MCFOLD ::std::string getKeySpriteLocation(::ButtonIndiciesEnum button, ::IconSize iconSize) const;
69
70 MCAPI ::std::string getKeySpriteName(int key) const;
71
72 MCAPI ::std::string getKeyTextName(int key) const;
73
74 MCAPI ::ButtonIndiciesEnum getMappedButtonIndicie(int key) const;
75
76 MCAPI void setGamepadButtonsABAreSwapped(bool swapAB);
77
78 MCAPI void setGamepadButtonsXYAreSwapped(bool swapXY);
79
80 MCAPI void swapGamepadButtonKeyBindings(::ButtonIndiciesEnum button1, ::ButtonIndiciesEnum button2);
81 // NOLINTEND
82
83public:
84 // constructor thunks
85 // NOLINTBEGIN
86 MCAPI void* $ctor(bool swapAB, bool swapXY);
87 // NOLINTEND
88
89public:
90 // destructor thunk
91 // NOLINTBEGIN
92 MCAPI void $dtor();
93 // NOLINTEND
94
95public:
96 // virtual function thunks
97 // NOLINTBEGIN
98 MCAPI void $setMappingWithRawInput(::std::string const& action, int key, ::RawInputType type);
99
100 MCAPI ::std::string $getMappedKeyName(int key) const;
101
102 MCAPI ::std::string $getMappedKeyName(int key, bool checkUserConfiguredSwap) const;
103
104 MCAPI ::std::string $getMappedKeyName(::Keymapping const& keyMapping) const;
105
106 MCAPI ::std::string $getSaveString(::std::string const& action) const;
107
108 MCAPI int $getAdjustedKey(int key) const;
109
110 MCAPI ::std::string $getKeySpriteLocation(int key, ::IconSize iconSize) const;
111
112 MCAPI ::std::string $getKeySpriteLocation(::Keymapping const& keyMapping) const;
113
114 MCAPI int $_rawKeyToKey(int rawInputKey, ::RawInputType rawInputType) const;
115 // NOLINTEND
116
117public:
118 // vftables
119 // NOLINTBEGIN
120 MCNAPI static void** $vftable();
121 // NOLINTEND
122};
Definition GamePadRemappingLayout.h:5
static MCAPI void ** $vftable()
Definition Keymapping.h:5
Definition RemappingLayout.h:5