mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-03 17:56:44 +02:00
20 lines
471 B
C++
20 lines
471 B
C++
|
|
#include "pch.h"
|
||
|
|
#include "LayoutMapManaged.h"
|
||
|
|
#include "LayoutMapManaged.g.cpp"
|
||
|
|
|
||
|
|
namespace winrt::PowerToys::Interop::implementation
|
||
|
|
{
|
||
|
|
hstring LayoutMapManaged::GetKeyName(uint32_t key)
|
||
|
|
{
|
||
|
|
return hstring{ _map->GetKeyName(key) };
|
||
|
|
}
|
||
|
|
uint32_t LayoutMapManaged::GetKeyValue(hstring const& name)
|
||
|
|
{
|
||
|
|
return _map->GetKeyFromName(std::wstring(name));
|
||
|
|
}
|
||
|
|
void LayoutMapManaged::Updatelayout()
|
||
|
|
{
|
||
|
|
_map->UpdateLayout();
|
||
|
|
}
|
||
|
|
}
|