JoyYDir.htm 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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>JoyYDir ([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 direction of the Y-axis of the joystick being pressed. The value is -1 (up) or 1 (down). The value returned is an integer number. See the example. Perfect for digital joysticks. <br />
  21. <br />
  22. 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.
  23. </td>
  24. </tr>
  25. </table>
  26. <h1><a href=../2d_examples/JoyYDir.bb>Example</a></h1>
  27. <table>
  28. <tr>
  29. <td>
  30. ; JoyYDir() example <br />
  31. <br />
  32. While Not KeyHit(1) <br />
  33. Cls <br />
  34. Text 0,0,"Joy Y Direction: " + JoyYDir() <br />
  35. Wend <br />
  36. </td>
  37. </tr>
  38. </table>
  39. <br>
  40. <a target=_top href=../index.htm>Index</a><br>
  41. <br>
  42. Click <a href=http://www.blitzbasic.co.nz/b3ddocs/command.php?name=JoyYDir&ref=comments target=_blank>here</a> to view the latest version of this page online</body>
  43. </html>