Files
BlitzNext/_release/help/commands/2d_commands/MouseZ.htm
T
2014-02-26 16:08:39 +13:00

47 lines
1.2 KiB
HTML

<html>
<head>
<title>Command: MouseZ</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" type="text/css" href="../css/commands.css">
</head>
<body>
<p><span class="Command">&nbsp;&nbsp;MouseZ&nbsp;&nbsp;</span></p>
<p>
<span class="header">Parameters:</span><br>
</p>
<table width="100%" border="0" cellspacing="2" cellpadding="2" align="center">
<tr>
<td>n/a</td>
</tr>
</table>
<p class="header">Description:<br>
<br>
<table width="100%" border="0" cellspacing="2" cellpadding="2" align="center">
<tr>
<td>MouseZ returns the current position of the mousewheel on a suitable mouse. It starts off at zero when your program begins. The value of MouseZ increases as you move the wheel away from you and decreases as you move it towards you.</td>
</tr>
</table>
<p class="header"><a href="../3d_examples/MouseZ.bb">Example:</a><br>
<br>
<table width="100%" border="0" cellspacing="2" cellpadding="2" align="center">
<tr>
<td>
Graphics 640, 480, 0, 2<BR>
<BR>
SetBuffer BackBuffer ()<BR>
<BR>
Repeat<BR>
Text 20, 20, "Mouse wheel position: " + MouseZ ()<BR>
Until KeyHit (1)<BR>
<BR>
End<BR>
</td>
</tr>
</table>
</body>
</html>