43 lines
962 B
HTML
43 lines
962 B
HTML
<html>
|
|
<head>
|
|
<title>Blitz3D Docs</title>
|
|
<link rel=stylesheet href=../css/commands.css type=text/css>
|
|
</head>
|
|
<body>
|
|
<h1>JoyY ([port])</h1>
|
|
<h1>Parameters</h1>
|
|
<table>
|
|
<tr>
|
|
<td>
|
|
port = number of joystick port to check (optional)
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<h1>Description</h1>
|
|
<table>
|
|
<tr>
|
|
<td>
|
|
This command returns the value of the x-axis of the joystick. The range is -1 to 1 (full up to full down). The value returned is a floating point number. See the example.
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<h1><a href=../2d_examples/JoyY.bb>Example</a></h1>
|
|
<table>
|
|
<tr>
|
|
<td>
|
|
; JoyX()/JoyY() example
|
|
<br />
|
|
|
|
<br />
|
|
While Not KeyHit(1)
|
|
<br />
|
|
Cls
|
|
<br />
|
|
Text 0,0,"Joy X Value: " + JoyX() + " - Joy Y Value:" + JoyY()
|
|
<br />
|
|
Wend
|
|
<br />
|
|
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<br>
|
|
<a target=_top href=../index.htm>Index</a><br>
|
|
<br>
|
|
Click <a href=http://www.blitzbasic.co.nz/b3ddocs/command.php?name=JoyY&ref=comments target=_blank>here</a> to view the latest version of this page online</body>
|
|
</html>
|