Merge branch 'c3' of https://git.alemauri.eu/alema/ugui.c3l into c3
This commit is contained in:
commit
e193109570
10 changed files with 368 additions and 48 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue