HTBasic Help
×
Menu
Index

KNOBY

Returns and resets the KNOBY counter value.
 
 KNOBY
 
Usage:
Ypulse=KNOBY
IF KNOBY<0 THEN Up
 
Example:           KNOBY.BAS
 
Description:
Note: The KNOBY keyword is for compatibility with HP Workstation BASIC even though on modern computers it is actually a mouse.
 
During an ON KNOB sampling interval, KNOBY counts the vertical mouse pulses generated. Upward mouse movement gives positive counts. Movement in the opposite direction gives negative counts. Once read, the count is cleared. If ON KNOB is not active, KNOBY returns a 0.
 
See Also: