LayoutMapManaged.cpp
1 #include "pch.h" 2 #include "LayoutMapManaged.h" 3 #include "LayoutMapManaged.g.cpp" 4 5 namespace winrt::PowerToys::Interop::implementation 6 { 7 hstring LayoutMapManaged::GetKeyName(uint32_t key) 8 { 9 return hstring{ _map->GetKeyName(key) }; 10 } 11 uint32_t LayoutMapManaged::GetKeyValue(hstring const& name) 12 { 13 return _map->GetKeyFromName(std::wstring(name)); 14 } 15 void LayoutMapManaged::UpdateLayout() 16 { 17 _map->UpdateLayout(); 18 } 19 }