LeviLamina
Loading...
Searching...
No Matches
TextToIconMapper.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/utility/EnableNonOwnerReferences.h"
7#include "mc/deps/input/InputMode.h"
8#include "mc/input/NewInteractionModel.h"
9
10// auto generated forward declare list
11// clang-format off
12class RemappingLayout;
13// clang-format on
14
16public:
17 // member variables
18 // NOLINTBEGIN
19 ::ll::TypedStorage<8, 64, ::std::unordered_map<int, ::std::string>> mGamepadIconMap;
20 ::ll::TypedStorage<8, 64, ::std::unordered_map<int, ::std::string>> mGamepadTipsIconMap;
21 ::ll::TypedStorage<8, 64, ::std::unordered_map<::std::string, ::std::string>> mTouchIconMap;
22 ::ll::TypedStorage<8, 64, ::std::unordered_map<::std::string, ::std::string>> mTouchCrossairIconMap;
23 ::ll::TypedStorage<8, 64, ::std::unordered_map<::std::string, ::std::string>> mTouchClassicIconMap;
24 ::ll::TypedStorage<8, 32, ::std::string> mGamepadPrefix;
25 ::ll::TypedStorage<8, 32, ::std::string> mGamepadTipsPrefix;
26 // NOLINTEND
27
28public:
29 // member functions
30 // NOLINTBEGIN
31 MCAPI TextToIconMapper();
32
33 MCAPI void _init();
34
35 MCAPI ::std::string _mapInputIcon(
36 ::std::string const& action,
37 ::RemappingLayout* layout,
38 ::InputMode mode,
39 ::NewInteractionModel interactionModel,
40 bool isGameTip
41 );
42
43 MCAPI ::std::string _remapTouchIcon(::std::string const& action, ::NewInteractionModel interactionModel);
44
45 MCAPI bool
46 _trySwapGamepadButtonInPlace(::std::string& button, int gamepadButton1, int gamepadButton2, bool isGameTip) const;
47
48 MCAPI void preprocessText(
49 ::std::string& text,
50 ::RemappingLayout* layout,
51 ::InputMode mode,
52 bool swapGamepadButtonsAB,
53 bool swapGamepadButtonsXY,
54 ::NewInteractionModel interactionModel,
55 bool isGameTip
56 );
57
58 MCAPI ::std::string remapGamepadIcon(int key, bool isGameTip) const;
59 // NOLINTEND
60
61public:
62 // constructor thunks
63 // NOLINTBEGIN
64 MCAPI void* $ctor();
65 // NOLINTEND
66
67public:
68 // vftables
69 // NOLINTBEGIN
70 MCNAPI static void** $vftable();
71 // NOLINTEND
72};
Definition EnableNonOwnerReferences.h:7
Definition RemappingLayout.h:5
Definition TextToIconMapper.h:5
static MCAPI void ** $vftable()