Using window{pauseable=false} in fullscreen apps does not disable the ability to pause by hitting ENTER.
Steps to reproduce:
1) Boot Picotron.
2) Add this code to main.lua (as per the manual):
window{
pauseable=false
}
function _draw()
cls()
print(t())
end |
3) Run it.
4) Try to pause by hitting ENTER.
5) Watch in helpless grief as you continue to fail to pause, despite mashing ENTER over and over and over.
Oh yeah, and another thing I noticed. @zep, the Proggy demo is now kinda broken since you can't type anything in the editor window without it popping up the pause menu every time you hit ENTER. (I noticed when trying to use my Froggy app today and realized that would affect Proggy too.)
Hello, I just learnt through this bug report the existence of this feature and I have to say I cannot reproduce it in the version 0.2.0. I guess it's fixed?
I'm running into this issue currently. Using window{pauseable=false} will work partially.
For keyp("enter") the pause menu is ignored on the initial key press, but if you hold down "ENTER" for about a second, the pause menu will pop up anyway. I'm not sure if this is a feature or a bug. I can understand why "long pressing Enter" might be an intentional feature of Picotron to always allow a user/player to access the basic menu, even in carts that attempt to disable it.
But from a purely logical standpoint window{pauseable=false} would be misleading then, because you can still pause the cart. If this is a feature, then it would be better to make this a tri-state rather than a bool.
window{
pause_disable=0, -- default behavior
pause_disable=1, -- disables pause entirely
pause_disable=2, -- long-press Enter to pause
} |
If this is a bug though, window{pauseable=false} should in fact disable the pause menu entirely.
It was made a feature where a long press would always pause.
Less happy about this change but it has some use case, it's extremely annoying in a few cases, especially with anything text based.
0.2.0
Added: hold menu button (ENTER) for half a second to force the pause menu to appear even when pauseable=false
I feel like it would be nice if it were an option you could disable in settings.p64. Also, you should definitely be able to disable it when exporting to a binary.
greatly agreed, it can be really annoying
it's more important if you're going through carts on a controller and have no way to escape something that you can't quit
I personally like being able to always pause full-screen apps, because it's the easiest way to quit the app. Picotron doesn't have a "close window" shortcut ala Alt + F4. I wish it did, but this is the next best thing.
I also use the menu a lot to restart carts (Ctrl + R is finicky sometimes).
I agree that there should be a way to turn this off in binary exports. On the other hand, if you're submitting a game to the cartverse, you should expect that people will want to be able to open that pause menu. I've played at least one game from the BBS that tried to disable the pause menu for no good reason, so being able to force it open is useful.
You can use alt+left/right arrows to switch your workspace, from which you can right-click on the app and close it, or if your cursor is unlocked, hold alt and right-click on the icon on the app menu to terminate it.
[Please log in to post a comment]




