1
1
Fork 0
mirror of https://github.com/QB64-Phoenix-Edition/QB64pe.git synced 2024-07-26 08:35:52 +00:00
QB64-PE/internal/help/PEN.txt
SMcNeill 6e01fc8dce Altered string compare routines (<,<=,>,>=) so they don't give false results with CHR$(0).
Added new _STRCMP and _STRICMP commands for quick string comparisons.
Cleaned up QB64 to finish removing the QUI (quick user insert) code and folders.
Altered UCASE and LCASE routines to be faster in some situations for us.
2014-09-22 08:19:03 -04:00

43 lines
1.2 KiB
Plaintext

The '''PEN''' function returns requested information about the lightpen device used.
{{PageSyntax}}
:: PEN(n)
''Description:''
*'''[[Keywords currently not supported by QB64|Currently NOT supported in QB64!]]'''
* The lightpen was a device that detected the current position when the screen was drawn. It sends a signal when it is detected, from that the x and y coordinates of the pen relative to the screen is known. '''Seldom used today!''' (mainly because of the pain in the arm because of the constant lift of the pen to the screen and I suspect it left the screen rather dirty)
* n is a numerical expression that can have one of these request numbers:
::0 = Whether the pen was drawn since the last function call (-1 yes, 0 no).
::1 = x-coordinate of the last pen press.
::2 = y-coordinate of the last pen press.
::3 = current pen switch status (-1 down, 0 up).
::4 = last known valid x-coordinate.
::5 = last known valid y-coordinate.
::6 = character row of last pen press.
::7 = character column of last pen press.
::8 = character row of last pen position.
::9 = character column of last pen position.
''See also:''
* [[PEN (statement)]], [[ON PEN]]
{{PageNavigation}}