reset more input fields on frame end
This commit is contained in:
parent
793fd1aa28
commit
bb6a166f2a
@ -278,7 +278,8 @@ fn void? Ctx.frame_end(&ctx)
|
||||
// 2. clear input fields
|
||||
ctx.input = ctx.current_input;
|
||||
ctx.current_input.events = {};
|
||||
ctx.current_input.keyboard.text_len = 0;
|
||||
ctx.current_input.mouse.scroll = {};
|
||||
ctx.current_input.keyboard = {};
|
||||
|
||||
// DO THE LAYOUT
|
||||
ctx.layout_element_tree()!;
|
||||
@ -338,11 +339,6 @@ $if $feature(DEBUG_POINTER):
|
||||
};
|
||||
ctx.cmd_queue.push(cmd);
|
||||
$endif
|
||||
|
||||
// foreach (i, c: ctx.cmd_queue) {
|
||||
// io::printf("[%d]: ", i);
|
||||
// io::printn(c);
|
||||
// }
|
||||
}
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user