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/IconSize.h"
7#include "mc/client/input/RemappingLayout.h"
8#include "mc/deps/input/enums/RawInputType.h"
9
10// auto generated forward declare list
11// clang-format off
12class Keymapping;
13// clang-format on
14
16public:
17 // member variables
18 // NOLINTBEGIN
19 ::ll::TypedStorage<8, 16, ::std::string_view> mControllerIconPath;
20 ::ll::TypedStorage<1, 1, bool> mGamepadButtonsXYAreSwapped;
21 ::ll::TypedStorage<1, 1, bool> mGamepadButtonsABAreSwapped;
22 // NOLINTEND
23
24public:
25 // virtual functions
26 // NOLINTBEGIN
27 virtual ~GamePadRemappingLayout() /*override*/ = default;
28
29 virtual void setMappingWithRawInput(::std::string const& action, int key, ::RawInputType type) /*override*/;
30
31 virtual ::std::string getMappedKeyName(int key) const /*override*/;
32
33 virtual ::std::string getMappedKeyName(int key, bool checkUserConfiguredSwap) const /*override*/;
34
35 virtual ::std::string getMappedKeyName(::Keymapping const& keyMapping) const /*override*/;
36
37 virtual ::std::string getSaveString(::std::string const& action) const /*override*/;
38
39 virtual int getAdjustedKey(int key) const /*override*/;
40
41 virtual ::std::string getKeySpriteLocation(
42 int key,
43 bool checkUserConfiguredSwap,
44 bool checkPlatformButtonSwapping,
45 ::IconSize iconSize
46 ) const /*override*/;
47
48 virtual ::std::string getKeySpriteLocation(::Keymapping const& keyMapping) const /*override*/;
49
50 virtual int _rawKeyToKey(int rawInputKey, ::RawInputType rawInputType) const /*override*/;
51 // NOLINTEND
52
53public:
54 // member functions
55 // NOLINTBEGIN
56 MCAPI ::std::string _getKeySpriteLocationInternal(
57 int key,
58 bool checkUserConfiguredButtonSwapping,
59 bool checkPlatformButtonSwapping,
60 ::IconSize iconSize
61 ) const;
62
63 MCAPI ::std::string const _getMappedKeyNameInternal(int key, bool const checkUserConfiguredButtonSwapping) const;
64
65 MCAPI void _swapGamepadKeyBindings(int key1, int key2);
66
67 MCAPI ::std::string getKeySpriteName(int key, bool checkPlatformButtonSwapping) const;
68
69 MCAPI ::std::string getKeyTextName(int key, bool checkUserConfiguredButtonSwapping) const;
70 // NOLINTEND
71
72public:
73 // virtual function thunks
74 // NOLINTBEGIN
75 MCAPI void $setMappingWithRawInput(::std::string const& action, int key, ::RawInputType type);
76
77 MCAPI ::std::string $getMappedKeyName(int key) const;
78
79 MCAPI ::std::string $getMappedKeyName(int key, bool checkUserConfiguredSwap) const;
80
81 MCAPI ::std::string $getMappedKeyName(::Keymapping const& keyMapping) const;
82
83 MCAPI ::std::string $getSaveString(::std::string const& action) const;
84
85 MCAPI int $getAdjustedKey(int key) const;
86
87 MCAPI ::std::string $getKeySpriteLocation(
88 int key,
89 bool checkUserConfiguredSwap,
90 bool checkPlatformButtonSwapping,
91 ::IconSize iconSize
92 ) const;
93
94 MCAPI ::std::string $getKeySpriteLocation(::Keymapping const& keyMapping) const;
95
96 MCAPI int $_rawKeyToKey(int rawInputKey, ::RawInputType rawInputType) const;
97 // NOLINTEND
98
99public:
100 // vftables
101 // NOLINTBEGIN
102 MCNAPI static void** $vftable();
103 // NOLINTEND
104};
Definition GamePadRemappingLayout.h:5
static MCAPI void ** $vftable()
Definition Keymapping.h:5
Definition RemappingLayout.h:5