You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[11:16] ske: btw one thing tophat may have a problem with is that javascript expects you to process key events in the event handler
[11:16] ske: so for example if you have ctrl+f set to go fullscreen and you coded it like this:
[11:17] ske:
if input.isPressed(input.key_ctrl) && input.isJustPressedc('f') {
// go fullscreen
}
[11:17] ske: it won't go fullscreen because it's not in the event handler
[11:17] ske: this applies to some operations
[11:18] ske: playing sounds, going on and off the fullscreen, showing file dialogs among others
[11:19] ske: the only way to fix that I can see is to have a button shown that says "click me" to activate certain action
[11:19] ske: but thats eh
ske
a decent solution would have an onEvent callback, like onFrame. It won't replace the default input scheme, it will just complement it. In the event callback people will be able to do the same check
if input.isPressed(input.key_ctrl) && input.isJustPressedc('f') {
// go fullscreen
}
and it will go fullscreen indeed.
The text was updated successfully, but these errors were encountered:
Original issue:
~mrms/tophat#19
Initial message:
ske
a decent solution would have an onEvent callback, like onFrame. It won't replace the default input scheme, it will just complement it. In the event callback people will be able to do the same check
and it will go fullscreen indeed.
The text was updated successfully, but these errors were encountered: