LeviLamina
Loading...
Searching...
No Matches
Keymapping.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5class Keymapping {
6public:
7 // member variables
8 // NOLINTBEGIN
9 ::ll::TypedStorage<8, 32, ::std::string> mAction;
10 ::ll::TypedStorage<8, 24, ::std::vector<int>> mKeys;
11 ::ll::TypedStorage<1, 1, bool> mAllowRemap;
12 ::ll::TypedStorage<1, 1, bool> mIsSharedKey;
13 // NOLINTEND
14
15public:
16 LLNDAPI bool isAssigned() const;
17 LLNDAPI bool isAltKey() const;
18 LLNDAPI bool isRemappable() const;
19 LLNDAPI bool isSharedKey() const;
20
21 Keymapping(std::string const& action, std::vector<int> const& defaultKeys) : mAction(action), mKeys(defaultKeys) {}
22
23public:
24 // prevent constructor by default
25 Keymapping& operator=(Keymapping const&);
26 Keymapping();
27
28public:
29 // member functions
30 // NOLINTBEGIN
31 MCAPI Keymapping(::Keymapping const&);
32
33 MCAPI Keymapping(::std::string const& action, int defaultKey);
34
35 MCAPI ~Keymapping();
36 // NOLINTEND
37
38public:
39 // constructor thunks
40 // NOLINTBEGIN
41 MCAPI void* $ctor(::Keymapping const&);
42
43 MCAPI void* $ctor(::std::string const& action, int defaultKey);
44 // NOLINTEND
45
46public:
47 // destructor thunk
48 // NOLINTBEGIN
49 MCFOLD void $dtor();
50 // NOLINTEND
51};
Definition Keymapping.h:5