提交 545ec0b2 编写于 作者: O openeuler-ci-bot 提交者: Gitee

!13 Pull Request

Merge pull request !13 from Night/master
......@@ -322,13 +322,13 @@ void Platform::process_input_event(const SDL_Event &event) {
// Keyboard
case SDL_KEYDOWN: {
const auto code = KeycodeConverter::convert(event.key.keysym.scancode);
if (code == KEY_RESERVED) break;
if (code == KEY_RESERVED || code == KEY_ESC) break;
keyboard_events.push_back({EV_KEY, code, 1});
break;
}
case SDL_KEYUP: {
const auto code = KeycodeConverter::convert(event.key.keysym.scancode);
if (code == KEY_RESERVED) break;
if (code == KEY_RESERVED || code == KEY_ESC) break;
keyboard_events.push_back({EV_KEY, code, 0});
break;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册