HTBasic Help
×
Menu
Index

KNOBX

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