Difference between revisions of "MOUSEWHEEL"

From QB64 Wiki
Jump to navigation Jump to search
imported>Clippy
m
imported>Clippy
m
Line 1: Line 1:
The '''_MOUSEWHEEL''' function returns an [[INTEGER]] value which can be negative or positive or 0.
+
The '''_MOUSEWHEEL''' function returns a positive or negative [[INTEGER]] value indicating the mouse scroll wheel clicks since the last mouse read.
  
  
Line 7: Line 7:
 
* Positive values represent how many "clicks" the mouse wheel has been moved down.
 
* Positive values represent how many "clicks" the mouse wheel has been moved down.
 
* Negative values represent how many "clicks" the mouse wheel has been moved up.
 
* Negative values represent how many "clicks" the mouse wheel has been moved up.
* Return values are relative to the last time [[_MOUSEINPUT]] was used, so if no movement on the wheel has occurred since the last time, _MOUSEWHEEL returns 0.
+
* Return values are relative to the last time [[_MOUSEINPUT]] was used, so if no movement on the wheel has occurred since the last read, _MOUSEWHEEL returns 0.
  
  

Revision as of 07:23, 3 January 2010

The _MOUSEWHEEL function returns a positive or negative INTEGER value indicating the mouse scroll wheel clicks since the last mouse read.


Syntax: scroll% = _MOUSEWHEEL


  • Positive values represent how many "clicks" the mouse wheel has been moved down.
  • Negative values represent how many "clicks" the mouse wheel has been moved up.
  • Return values are relative to the last time _MOUSEINPUT was used, so if no movement on the wheel has occurred since the last read, _MOUSEWHEEL returns 0.


See also: _MOUSEINPUT, _MOUSEX, _MOUSEY, _MOUSEBUTTON, _MOUSESHOW, _MOUSEHIDE


Navigation:

Go to Keyword Reference - Alphabetical

Go to Keyword Reference - By usage