This commit is contained in:
Alessandro Mauri 2026-03-11 17:37:20 +01:00
commit e193109570
10 changed files with 368 additions and 48 deletions

View file

@ -162,7 +162,7 @@ macro Id @compute_id(...)
{
Id id = (Id)$$LINE.hash() ^ (Id)@str_hash($$FILE);
$for var $i = 0; $i < $vacount; $i++:
id ^= (Id)$vaconst[$i].hash();
id ^= (Id)$vaexpr[$i].hash();
$endfor
return id;
}
@ -276,7 +276,9 @@ fn void? Ctx.frame_end(&ctx)
}
// 2. clear input fields
Point mdelta = ctx.current_input.mouse.pos - ctx.input.mouse.pos;
ctx.input = ctx.current_input;
ctx.input.mouse.delta = mdelta;
ctx.current_input.events = {};
ctx.current_input.mouse.scroll = {};
ctx.current_input.mouse.updated = BTN_NONE;