Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Programmatically Return to Editor #43

Open
seclorum opened this issue Mar 13, 2012 · 2 comments
Open

Feature request: Programmatically Return to Editor #43

seclorum opened this issue Mar 13, 2012 · 2 comments

Comments

@seclorum
Copy link

One thing that I have left to do with regards to Joystick support for the Pandora is to allow the programmer to set the 'nub' mode of the Open Pandora controls, which can be configured on the fly to act as either joysticks, nub0=mouse/nub1=mouse buttons, buttons, and so on. In order to facilitate this mode switch, however, the Program would have to be reset after the mode switch - one easy, user-friendly way to do this would be to have a "return_to_editor()" function call available that would end the program and, as suggested by the descriptive name, return to the Lua editor. It might also be an interesting way to build apps that encourage continued programming by the user. :)

@antirez
Copy link
Owner

antirez commented Mar 16, 2012

That's a good idea indeed, so we may add editor() and reset(), the first just returning to the editor, and the second equivalent to press two times the ESC key for a complete program reset? Thanks for the good suggestion.

@seclorum
Copy link
Author

Seems about right to me .. only I'd preface the method names with load81_editor() and load81_reset(), just to avoid the confusion, Bruce ..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants