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.