3#include "SystemToGuiKeyCode.hpp" 
    4#include <alicorn/platform/windows.hpp> 
   14KeyCode_t SystemToGuiKeyCode(int32_t _AsciiKeyCode)
 
   16  static const ::std::map<int32_t, KeyCode_t> Keys =
 
   18    { VK_BACK,    CovelliteGui::Input::KI_BACK }, 
 
   19    { VK_END,     CovelliteGui::Input::KI_END }, 
 
   20    { VK_HOME,    CovelliteGui::Input::KI_HOME }, 
 
   21    { VK_LEFT,    CovelliteGui::Input::KI_LEFT }, 
 
   22    { VK_UP,      CovelliteGui::Input::KI_UP }, 
 
   23    { VK_RIGHT,   CovelliteGui::Input::KI_RIGHT }, 
 
   24    { VK_DOWN,    CovelliteGui::Input::KI_DOWN }, 
 
   25    { VK_DELETE,  CovelliteGui::Input::KI_DELETE }, 
 
   29  TODO(
"Преобразование остальных виртуальных кодов.");
 
   31  const auto itKey = Keys.find(_AsciiKeyCode);
 
   32  if (itKey == Keys.end()) 
return KeyCode_t::KI_UNKNOWN;