home *** CD-ROM | disk | FTP | other *** search
/ RISCWORLD 7 / RISCWORLD_VOL7.iso / Software / Issue4 / SDL / gcc346 / !SDL / man / SDL_JoyHatEvent.3 < prev    next >
Encoding:
Text File  |  2006-09-20  |  2.5 KB  |  109 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_JoyHatEvent"("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_JoyHatEvent- Joystick hat position change event structure 
  13. <h2><a name='sect1' href='#toc1'>Structure
  14. Definition</a></h2>
  15. <p>
  16. <br>
  17. <pre>CWtypedef struct{
  18.   Uint8 type;
  19.   Uint8 which;
  20.   Uint8 hat;
  21.   Uint8 value;
  22. } SDL_JoyHatEvent;
  23. </pre><p>
  24.  
  25. <h2><a name='sect2' href='#toc2'>Structure Data</a></h2>
  26.  
  27. <dl>
  28.  
  29. <dt><b>type</b> </dt>
  30. <dd><b>SDL_JOY</b> </dd>
  31.  
  32. <dt><b>which</b> </dt>
  33. <dd>Joystick device index </dd>
  34.  
  35. <dt><b>hat</b> </dt>
  36. <dd>Joystick hat
  37. index </dd>
  38.  
  39. <dt><b>value</b> </dt>
  40. <dd>Hat position </dd>
  41. </dl>
  42.  
  43. <h2><a name='sect3' href='#toc3'>Description</a></h2>
  44. <p>
  45. <b>SDL_JoyHatEvent</b> is a member of the
  46. <i><b>SDL_Event</b></i> union and is used when an event of type <b>SDL_JOYHATMOTION</b> is reported.
  47. <p>
  48. A <b>SDL_JOYHATMOTION</b> event occurs when ever a user moves a hat on the joystick.
  49. The field <b>which</b> is the index of the joystick that reported the event and
  50. <b>hat</b> is the index of the hat (for a more detailed exlaination see the <i>Joystick
  51. section</i>). <b>value</b> is the current position of the hat. It is a logically OR'd
  52. combination of the following values (whose meanings should be pretty obvious:)
  53. <dl>
  54.  
  55. <dt><b>SDL_HAT_CENTERED</b> </dt>
  56. <dd></dd>
  57.  
  58. <dt><b>SDL_HAT_UP</b> </dt>
  59. <dd></dd>
  60.  
  61. <dt><b>SDL_HAT_RIGHT</b> </dt>
  62. <dd></dd>
  63.  
  64. <dt><b>SDL_HAT_DOWN</b> </dt>
  65. <dd></dd>
  66.  
  67. <dt><b>SDL_HAT_LEFT</b> </dt>
  68. <dd></dd>
  69. </dl>
  70. <p>
  71. The
  72. following defines are also provided: 
  73. <dl>
  74.  
  75. <dt><b>SDL_HAT_RIGHTUP</b> </dt>
  76. <dd></dd>
  77.  
  78. <dt><b>SDL_HAT_RIGHTDOWN</b>
  79. </dt>
  80. <dd></dd>
  81.  
  82. <dt><b>SDL_HAT_LEFTUP</b> </dt>
  83. <dd></dd>
  84.  
  85. <dt><b>SDL_HAT_LEFTDOWN</b> </dt>
  86. <dd></dd>
  87. </dl>
  88.  
  89. <h2><a name='sect4' href='#toc4'>See Also</a></h2>
  90. <p>
  91. <i><b>SDL_Event</b></i>, <i>Joystick Functions</i>,
  92. <i><b>SDL_JoystickEventState</b></i>, <i><b>SDL_JoystickGetHat</b></i> 
  93. <!--
  94.   
  95.  <p>
  96.  
  97. <hr><p>
  98. <a name='toc'><b>Table of Contents</b></a><p>
  99. <ul>
  100. <li><a name='toc0' href='#sect0'>Name</a></li>
  101. <li><a name='toc1' href='#sect1'>Structure Definition</a></li>
  102. <li><a name='toc2' href='#sect2'>Structure Data</a></li>
  103. <li><a name='toc3' href='#sect3'>Description</a></li>
  104. <li><a name='toc4' href='#sect4'>See Also</a></li>
  105. </ul>
  106. </body>
  107. </html>
  108.