home *** CD-ROM | disk | FTP | other *** search
/ RISCWORLD 7 / RISCWORLD_VOL7.iso / Software / Issue4 / SDL / gcc346 / !SDL / man / SDL_JoyAxisEvent.3 < prev    next >
Encoding:
Text File  |  2006-09-20  |  2.0 KB  |  71 lines

  1. <!-- manual page source format generated by PolyglotMan v3.0.8+X.Org, -->
  2. <!-- available at http://polyglotman.sourceforge.net/ -->
  3.  
  4. <html>
  5. <head>
  6. <title>"SDL_JoyAxisEvent"("3") manual page</title>
  7. </head>
  8. <body bgcolor='#efefef' text='black' link='blue' vlink='#551A8B' alink='red'>
  9. <a href='#toc'>Table of Contents</a><p>
  10.  
  11. <h2><a name='sect0' href='#toc0'>Name</a></h2>
  12. SDL_JoyAxisEvent- Joystick axis motion event structure 
  13. <h2><a name='sect1' href='#toc1'>Structure Definition</a></h2>
  14. <p>
  15. <br>
  16. <pre>CWtypedef struct{
  17.   Uint8 type;
  18.   Uint8 which;
  19.   Uint8 axis;
  20.   Sint16 value;
  21. } SDL_JoyAxisEvent;
  22. </pre><p>
  23.  
  24. <h2><a name='sect2' href='#toc2'>Structure Data</a></h2>
  25.  
  26. <dl>
  27.  
  28. <dt><b>type</b> </dt>
  29. <dd><b>SDL_JOYAXISMOTION</b> </dd>
  30.  
  31. <dt><b>which</b> </dt>
  32. <dd>Joystick device index </dd>
  33.  
  34. <dt><b>axis</b> </dt>
  35. <dd>Joystick
  36. axis index </dd>
  37.  
  38. <dt><b>value</b> </dt>
  39. <dd>Axis value (range: -32768 to 32767) </dd>
  40. </dl>
  41.  
  42. <h2><a name='sect3' href='#toc3'>Description</a></h2>
  43. <p>
  44. <b>SDL_JoyAxisEvent</b>
  45. is a member of the <i><b>SDL_Event</b></i> union and is used when an event of type <b>SDL_JOYAXISMOTION</b>
  46. is reported. <p>
  47. A <b>SDL_JOYAXISMOTION</b> event occurs when ever a user moves an
  48. axis on the joystick. The field <b>which</b> is the index of the joystick that
  49. reported the event and <b>axis</b> is the index of the axis (for a more detailed
  50. explaination see the <i>Joystick section</i>). <b>value</b> is the current position of
  51. the axis. 
  52. <h2><a name='sect4' href='#toc4'>See Also</a></h2>
  53. <p>
  54. <i><b>SDL_Event</b></i>, <i>Joystick Functions</i>, <i><b>SDL_JoystickEventState</b></i>,
  55. <i><b>SDL_JoystickGetAxis</b></i> 
  56. <!--
  57.   
  58.  <p>
  59.  
  60. <hr><p>
  61. <a name='toc'><b>Table of Contents</b></a><p>
  62. <ul>
  63. <li><a name='toc0' href='#sect0'>Name</a></li>
  64. <li><a name='toc1' href='#sect1'>Structure Definition</a></li>
  65. <li><a name='toc2' href='#sect2'>Structure Data</a></li>
  66. <li><a name='toc3' href='#sect3'>Description</a></li>
  67. <li><a name='toc4' href='#sect4'>See Also</a></li>
  68. </ul>
  69. </body>
  70. </html>
  71.