Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
KeyboardRemappingLayout Class Reference
Inheritance diagram for KeyboardRemappingLayout:

Public Types

using RefreshKeymappingPublisher

Public Member Functions

virtual void setMappingWithRawInput (::std::string const &action, int rawKeyIndex, ::RawInputType rawKeyType)
virtual::std::string getMappedKeyName (int key) const
virtual::std::string getMappedKeyName (int key, bool checkUserConfiguredSwap) const
virtual int getAdjustedKey (int key) const
virtual::std::string getSaveString (::std::string const &action) const
virtual int _rawKeyToKey (int rawKeyIndex, ::RawInputType rawInputType) const
MCAPI KeyboardRemappingLayout (::KeyboardType keyboardType)
MCAPI void * $ctor (::KeyboardType keyboardType)
MCAPI void $setMappingWithRawInput (::std::string const &action, int rawKeyIndex, ::RawInputType rawKeyType)
MCAPI::std::string $getMappedKeyName (int key) const
MCAPI::std::string $getMappedKeyName (int key, bool checkUserConfiguredSwap) const
MCAPI int $getAdjustedKey (int key) const
MCAPI::std::string $getSaveString (::std::string const &action) const
MCAPI int $_rawKeyToKey (int rawKeyIndex, ::RawInputType rawInputType) const
virtual::std::string getMappedKeyName (::Keymapping const &keyMapping) const
virtual::std::string getKeySpriteLocation (int key, bool checkUserConfiguredSwap, bool checkPlatformButtonSwapping, ::IconSize iconSize) const
virtual::std::string getKeySpriteLocation (::Keymapping const &keyMapping) const
MCAPI void assignDefaultMapping (::std::vector<::Keymapping > &&newDefaultMapping)
MCAPI void defaultKeyAtIndex (uint64 index)
MCAPI ::std::vector<::DuplicateKey > generateIndicesOfDuplicates () const
MCAPI::Keymapping const & getKeymappingByAction (::std::string_view action) const
MCAPI void setMapping (::std::string_view action, ::std::vector< int > const &keys)
MCAPI void unassignDuplicateKeys (uint64 index)
MCAPI void unassignKeyAtIndex (uint64 index)
MCAPI void $dtor ()
MCAPI::std::string $getMappedKeyName (::Keymapping const &keyMapping) const
MCAPI::std::string $getKeySpriteLocation (int key, bool checkUserConfiguredSwap, bool checkPlatformButtonSwapping, ::IconSize iconSize) const
MCAPI::std::string $getKeySpriteLocation (::Keymapping const &keyMapping) const

Static Public Member Functions

static MCAPI void ** $vftable ()

Public Attributes

::ll::TypedStorage< 4, 4, ::KeyboardType const > mKeyboardType
::ll::TypedStorage< 8, 24, ::std::vector<::Keymapping > > mKeymappings
::ll::TypedStorage< 8, 24, ::std::vector<::Keymapping > > mDefaultMappings
::ll::TypedStorage< 8, 16, ::std::shared_ptr< ::Bedrock::PubSub::Publisher< void(::std::optional< uint64 >), ::Bedrock::PubSub::ThreadModel::SingleThreaded, 0 > > > mRefreshKeymappingsPublisher
::ll::TypedStorage< 8, 32, ::RemappingLayoutRawIndex > mLayoutRawIndex

Member Typedef Documentation

◆ RefreshKeymappingPublisher

using RemappingLayout::RefreshKeymappingPublisher
inherited
Initial value:

Constructor & Destructor Documentation

◆ KeyboardRemappingLayout()

MCAPI KeyboardRemappingLayout::KeyboardRemappingLayout ( ::KeyboardType keyboardType)
explicit
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

Member Function Documentation

◆ setMappingWithRawInput()

virtual void KeyboardRemappingLayout::setMappingWithRawInput ( ::std::string const & action,
int rawKeyIndex,
::RawInputType rawKeyType )
virtual

Reimplemented from RemappingLayout.

◆ getAdjustedKey()

virtual int KeyboardRemappingLayout::getAdjustedKey ( int key) const
virtual

Reimplemented from RemappingLayout.

◆ _rawKeyToKey()

virtual int KeyboardRemappingLayout::_rawKeyToKey ( int rawKeyIndex,
::RawInputType rawInputType ) const
virtual

Implements RemappingLayout.

◆ $ctor()

MCAPI void * KeyboardRemappingLayout::$ctor ( ::KeyboardType keyboardType)
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $getMappedKeyName() [1/3]

MCAPI::std::string KeyboardRemappingLayout::$getMappedKeyName ( int key) const
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $getMappedKeyName() [2/3]

MCAPI::std::string KeyboardRemappingLayout::$getMappedKeyName ( int key,
bool checkUserConfiguredSwap ) const
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $getAdjustedKey()

MCAPI int KeyboardRemappingLayout::$getAdjustedKey ( int key) const
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $getSaveString()

MCAPI::std::string KeyboardRemappingLayout::$getSaveString ( ::std::string const & action) const
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $_rawKeyToKey()

MCAPI int KeyboardRemappingLayout::$_rawKeyToKey ( int rawKeyIndex,
::RawInputType rawInputType ) const
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $vftable()

MCAPI void ** KeyboardRemappingLayout::$vftable ( )
static
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ defaultKeyAtIndex()

MCAPI void RemappingLayout::defaultKeyAtIndex ( uint64 index)
inherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ generateIndicesOfDuplicates()

MCAPI ::std::vector<::DuplicateKey > RemappingLayout::generateIndicesOfDuplicates ( ) const
inherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ unassignKeyAtIndex()

MCAPI void RemappingLayout::unassignKeyAtIndex ( uint64 index)
inherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $dtor()

MCAPI void RemappingLayout::$dtor ( )
inherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $getMappedKeyName() [3/3]

MCAPI::std::string RemappingLayout::$getMappedKeyName ( ::Keymapping const & keyMapping) const
inherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $getKeySpriteLocation() [1/2]

MCAPI::std::string RemappingLayout::$getKeySpriteLocation ( int key,
bool checkUserConfiguredSwap,
bool checkPlatformButtonSwapping,
::IconSize iconSize ) const
inherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

◆ $getKeySpriteLocation() [2/2]

MCAPI::std::string RemappingLayout::$getKeySpriteLocation ( ::Keymapping const & keyMapping) const
inherited
Attention
This function is not yet publicly available. To request access: reference this function in your code and attempt to link. The linker will report the exact symbol name. Submit a access request at https://github.com/LiteLDev/mcapi-requests/issues/new including the full symbol name.

The documentation for this class was generated from the following files: