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(int key, ::IconSize iconSize) const /*override*/;
42
43 virtual ::std::string getKeySpriteLocation(::Keymapping const& keyMapping) const /*override*/;
44
45 virtual int _rawKeyToKey(int rawInputKey, ::RawInputType rawInputType) const /*override*/;
46 // NOLINTEND
47
48public:
49 // member functions
50 // NOLINTBEGIN
51 MCAPI ::std::string
52 _getKeySpriteLocationInternal(int key, bool checkUserConfiguredButtonSwapping, ::IconSize iconSize) const;
53
54 MCAPI ::std::string const _getMappedKeyNameInternal(int key, bool const checkUserConfiguredButtonSwapping) const;
55
56 MCAPI void _swapGamepadKeyBindings(int key1, int key2);
57
58 MCAPI ::std::string getKeySpriteName(int key) const;
59
60 MCAPI ::std::string getKeyTextName(int key, bool checkUserConfiguredButtonSwapping) const;
61 // NOLINTEND
62
63public:
64 // virtual function thunks
65 // NOLINTBEGIN
66 MCAPI void $setMappingWithRawInput(::std::string const& action, int key, ::RawInputType type);
67
68 MCAPI ::std::string $getMappedKeyName(int key) const;
69
70 MCAPI ::std::string $getMappedKeyName(int key, bool checkUserConfiguredSwap) const;
71
72 MCAPI ::std::string $getMappedKeyName(::Keymapping const& keyMapping) const;
73
74 MCAPI ::std::string $getSaveString(::std::string const& action) const;
75
76 MCAPI int $getAdjustedKey(int key) const;
77
78 MCAPI ::std::string $getKeySpriteLocation(int key, ::IconSize iconSize) const;
79
80 MCAPI ::std::string $getKeySpriteLocation(::Keymapping const& keyMapping) const;
81
82 MCAPI int $_rawKeyToKey(int rawInputKey, ::RawInputType rawInputType) const;
83 // NOLINTEND
84
85public:
86 // vftables
87 // NOLINTBEGIN
88 MCNAPI static void** $vftable();
89 // NOLINTEND
90};
Definition GamePadRemappingLayout.h:5
static MCAPI void ** $vftable()
Definition Keymapping.h:5
Definition RemappingLayout.h:5