Add force bool to input to force focus on first draw
This commit is contained in:
parent
549693dd38
commit
1b67db0487
1 changed files with 5 additions and 0 deletions
|
@ -49,6 +49,11 @@ return function(core, input, ...)
|
|||
end
|
||||
|
||||
-- user interaction
|
||||
if input.force ~= nil and input.force then
|
||||
core.active = opt.id
|
||||
input.force = false
|
||||
end
|
||||
|
||||
opt.state = core:registerHitbox(opt.id, x,y,w,h)
|
||||
opt.hasKeyboardFocus = core:grabKeyboardFocus(opt.id)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue