JoyY.htm 962 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  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>JoyY ([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 (full up to full down). The value returned is a floating point number. See the example.
  21. </td>
  22. </tr>
  23. </table>
  24. <h1><a href=../2d_examples/JoyY.bb>Example</a></h1>
  25. <table>
  26. <tr>
  27. <td>
  28. ; JoyX()/JoyY() example <br />
  29. <br />
  30. While Not KeyHit(1) <br />
  31. Cls <br />
  32. Text 0,0,"Joy X Value: " + JoyX() + " - Joy Y Value:" + JoyY() <br />
  33. Wend <br />
  34. </td>
  35. </tr>
  36. </table>
  37. <br>
  38. <a target=_top href=../index.htm>Index</a><br>
  39. <br>
  40. 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>
  41. </html>