This source file includes following definitions.
- WindowsKeyCodeForKeyboardCode
- KeyboardCodeForWindowsKeyCode
- CodeForWindowsScanCode
#include "ui/events/keycodes/keyboard_code_conversion_win.h"
#include "ui/events/keycodes/dom4/keycode_converter.h"
namespace ui {
WORD WindowsKeyCodeForKeyboardCode(KeyboardCode keycode) {
return static_cast<WORD>(keycode);
}
KeyboardCode KeyboardCodeForWindowsKeyCode(WORD keycode) {
return static_cast<KeyboardCode>(keycode);
}
const char* CodeForWindowsScanCode(WORD scan_code) {
return KeycodeConverter::GetInstance()->NativeKeycodeToCode(
scan_code);
}
}