Ha ha! The escape-to-quit behavior...
...seems to be baked into the UVM.
This commit is contained in:
parent
f8f27ed83e
commit
50e34c70cb
|
|
@ -43,6 +43,9 @@ void
|
||||||
keydown(u64 window_id, u16 keycode)
|
keydown(u64 window_id, u16 keycode)
|
||||||
{
|
{
|
||||||
if (KEY_BACKSPACE == keycode) {
|
if (KEY_BACKSPACE == keycode) {
|
||||||
|
print_str("bye! ");
|
||||||
|
print_i64(keycode);
|
||||||
|
print_endl();
|
||||||
exit(0);
|
exit(0);
|
||||||
}
|
}
|
||||||
if (KEY_BACKSPACE == keycode) {
|
if (KEY_BACKSPACE == keycode) {
|
||||||
|
|
@ -108,7 +111,7 @@ main()
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
window_draw_frame(wid, frame_buffer);
|
window_draw_frame(wid, frame_buffer);
|
||||||
window_on_keydown(wid, keydown);
|
//window_on_keydown(wid, keydown);
|
||||||
window_on_mousedown(wid, mousedown);
|
window_on_mousedown(wid, mousedown);
|
||||||
window_on_mousemove(wid, mousemove);
|
window_on_mousemove(wid, mousemove);
|
||||||
enable_event_loop();
|
enable_event_loop();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue