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&, int, ::RawInputType) /*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, ::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 checkUserConfiguredButtonSwapping) const;
55
56 MCAPI void _swapGamepadKeyBindings(int key1, int key2);
57 // NOLINTEND
58
59public:
60 // virtual function thunks
61 // NOLINTBEGIN
62 MCAPI ::std::string $getMappedKeyName(int key) const;
63
64 MCAPI ::std::string $getMappedKeyName(int key, bool checkUserConfiguredSwap) const;
65
66 MCAPI ::std::string $getMappedKeyName(::Keymapping const& keyMapping) const;
67
68 MCAPI ::std::string $getSaveString(::std::string const& action) const;
69
70 MCAPI int $getAdjustedKey(int key) const;
71
72 MCAPI ::std::string $getKeySpriteLocation(int key, ::IconSize iconSize) const;
73
74 MCAPI ::std::string $getKeySpriteLocation(::Keymapping const& keyMapping) const;
75 // NOLINTEND
76
77public:
78 // vftables
79 // NOLINTBEGIN
80 MCNAPI static void** $vftable();
81 // NOLINTEND
82};
Definition GamePadRemappingLayout.h:5
static MCAPI void ** $vftable()
Definition Keymapping.h:5
Definition RemappingLayout.h:5