Skip to content

Commit

Permalink
Add repeat field in allevents example output for KeyDown/Up events
Browse files Browse the repository at this point in the history
  • Loading branch information
dacap committed Oct 2, 2023
1 parent 592d028 commit 10c99f1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/allevents.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,9 @@ class LogWindow {
//[[fallthrough]];
case os::Event::KeyUp: {
wchar_t wideUnicode[2] = { ev.unicodeChar(), 0 };
logLine("%s scancode=%d unicode=%d (%s)%s",
logLine("%s repeat=%d scancode=%d unicode=%d (%s)%s",
(ev.type() == os::Event::KeyDown ? "KeyDown": "KeyUp"),
ev.repeat(),
ev.scancode(),
ev.unicodeChar(),
base::to_utf8(wideUnicode).c_str(),
Expand Down

0 comments on commit 10c99f1

Please sign in to comment.