JoyZ.htm 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <html>
  2. <head>
  3. <title>Blitz3D Docs</title>
  4. <link rel=stylesheet href=../css/commands.css type=text/css>
  5. </head>
  6. <body>
  7. <h1>JoyZ ([port])</h1>
  8. <h1>Parameters</h1>
  9. <table>
  10. <tr>
  11. <td>
  12. port = number of joystick port to check (optional)
  13. </td>
  14. </tr>
  15. </table>
  16. <h1>Description</h1>
  17. <table>
  18. <tr>
  19. <td>
  20. This command returns the value of the x-axis of the joystick. The range is -1 to 1 (Max to none). The value returned is a floating point number. See the example. <br />
  21. As with any joystick command, you MUST have a DirectX compatible joystick plugged in and properly configured within Windows for it to work. See your joystick documentation for more information.
  22. </td>
  23. </tr>
  24. </table>
  25. <h1><a href=../2d_examples/JoyZ.bb>Example</a></h1>
  26. <table>
  27. <tr>
  28. <td>
  29. ; JoyZ() example <br />
  30. <br />
  31. While Not KeyHit(1) <br />
  32. Cls <br />
  33. Text 0,0,"Joy Z Value: " + JoyZ() <br />
  34. Wend <br />
  35. </td>
  36. </tr>
  37. </table>
  38. <br>
  39. <a target=_top href=../index.htm>Index</a><br>
  40. <br>
  41. Click <a href=http://www.blitzbasic.co.nz/b3ddocs/command.php?name=JoyZ&ref=comments target=_blank>here</a> to view the latest version of this page online</body>
  42. </html>