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

New Interrupt. Console touched. #6

Closed
RFO-BASIC opened this issue Nov 23, 2012 · 1 comment
Closed

New Interrupt. Console touched. #6

RFO-BASIC opened this issue Nov 23, 2012 · 1 comment
Assignees

Comments

@RFO-BASIC
Copy link
Owner

Into the section with onBackKey, etc around page 54...

onConsoleTouch:
Tapping on any line on the output Console that has text on it will cause control to be transferred to this label. Note that touch must be some printed line of text. Any line of text. It can not be an empty area of the screen.

The primary intent of this interrupt is provide a means of allowing the user to asynchronously interrupt an executing BASIC! program (not in graphics mode) for some purpose. A common purpose would be to have the program request input via an INPUT statement. See the Sample File, f35_bluetooth.bas, for an example of this.

For detecting screen touches while in graphics mode, use onGRtouch:

onConsoleTouch: must stand alone on the line.

consoleTouch.Resume
Resumes execution at the point in the BASIC! program where the touch occurred.

In addition, all mentions of "onTouch" should be changed to "onGRtouch"

@ghost ghost assigned mrleavitt Nov 23, 2012
@mrleavitt
Copy link
Collaborator

Slight modifications to suggestions above.

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

No branches or pull requests

2 participants