Difference between revisions of "Mouse Functions"

From Archaic Pixels
Jump to: navigation, search
(Mouse Functions)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
{{:HuC Function Style}}
 
= Mouse Functions =
 
= Mouse Functions =
  
Line 10: Line 11:
 
     during initialization.
 
     during initialization.
 
|}
 
|}
 +
  
 
== mouse_enable ==
 
== mouse_enable ==
Line 16: Line 18:
 
! [color=#00AA00]void[/color] mouse_enable([color=#00AA00]void[/color]); [b][ 1.5+ ][/b]
 
! [color=#00AA00]void[/color] mouse_enable([color=#00AA00]void[/color]); [b][ 1.5+ ][/b]
 
|-
 
|-
| Turn on mouse. Return true if a mouse actually exists.
+
|
 +
  Turn on mouse. Return true if a mouse actually exists.
 
|}
 
|}
 +
  
 
== mouse_disable ==
 
== mouse_disable ==
Line 24: Line 28:
 
! [color=#00AA00]void[/color] mouse_disable([color=#00AA00]void[/color]); [b][ 1.5+ ][/b]
 
! [color=#00AA00]void[/color] mouse_disable([color=#00AA00]void[/color]); [b][ 1.5+ ][/b]
 
|-
 
|-
| Turn off mouse support.
+
|
 +
  Turn off mouse support.
 
|}
 
|}
 +
  
 
== mouse_x ==
 
== mouse_x ==
Line 32: Line 38:
 
! [color=#0000AA]int[/color] mouse_x([color=#00AA00]void[/color]); [b][ 1.5+ ][/b]
 
! [color=#0000AA]int[/color] mouse_x([color=#00AA00]void[/color]); [b][ 1.5+ ][/b]
 
|-
 
|-
| Return the horizontal delta of the mouse since last vsync.
+
|
 +
  Return the horizontal delta of the mouse since last vsync.
 
|}
 
|}
 +
  
 
== mouse_y ==
 
== mouse_y ==
Line 40: Line 48:
 
! [color=#0000AA]int[/color] mouse_y([color=#00AA00]void[/color]); [b][ 1.5+ ][/b]
 
! [color=#0000AA]int[/color] mouse_y([color=#00AA00]void[/color]); [b][ 1.5+ ][/b]
 
|-
 
|-
| Return the vertical delta for the mouse since last vsync.
+
|
 +
  Return the vertical delta for the mouse since last vsync.
 
|}
 
|}
 
{{:HuC Function Style}}
 

Latest revision as of 22:32, 12 September 2010

Mouse Functions

mouse_exists

char mouse_exists(void); [ 1.5+ ]
   Check whether a mouse is installed. Return true if it was detected
   during initialization.


mouse_enable

void mouse_enable(void); [ 1.5+ ]
 Turn on mouse. Return true if a mouse actually exists.


mouse_disable

void mouse_disable(void); [ 1.5+ ]
 Turn off mouse support.


mouse_x

int mouse_x(void); [ 1.5+ ]
 Return the horizontal delta of the mouse since last vsync.


mouse_y

int mouse_y(void); [ 1.5+ ]
 Return the vertical delta for the mouse since last vsync.