home *** CD-ROM | disk | FTP | other *** search
/ RISCWORLD 7 / RISCWORLD_VOL7.iso / Software / Issue4 / SDL / gcc346 / !SDL / man / SDL_JoystickGetHat.3 < prev    next >
Encoding:
Text File  |  2006-09-20  |  1.7 KB  |  77 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_JoystickGetHat"("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_JoystickGetHat- Get the current state of a joystick hat 
  13. <h2><a name='sect1' href='#toc1'>Synopsis</a></h2>
  14. <p>
  15. <b>#include
  16. "SDL.h" <p>
  17. </b><b>Uint8 <b>SDL_JoystickGetHat</b></b>(<b>SDL_Joystick *joystick, int hat</b>); 
  18. <h2><a name='sect2' href='#toc2'>Description</a></h2>
  19. <p>
  20. SDL_JoystickGetHat
  21. returns the current state of the given <b>hat</b> on the given <b>joystick</b>. 
  22. <h2><a name='sect3' href='#toc3'>Return
  23. Value</a></h2>
  24. <p>
  25. The current state is returned as a Uint8 which is defined as an OR'd
  26. combination of one or more of the following 
  27. <dl>
  28.  
  29. <dt><b>SDL_HAT_CENTERED</b> </dt>
  30. <dd></dd>
  31.  
  32. <dt><b>SDL_HAT_UP</b>
  33. </dt>
  34. <dd></dd>
  35.  
  36. <dt><b>SDL_HAT_RIGHT</b> </dt>
  37. <dd></dd>
  38.  
  39. <dt><b>SDL_HAT_DOWN</b> </dt>
  40. <dd></dd>
  41.  
  42. <dt><b>SDL_HAT_LEFT</b> </dt>
  43. <dd></dd>
  44.  
  45. <dt><b>SDL_HAT_RIGHTUP</b> </dt>
  46. <dd></dd>
  47.  
  48. <dt><b>SDL_HAT_RIGHTDOWN</b>
  49. </dt>
  50. <dd></dd>
  51.  
  52. <dt><b>SDL_HAT_LEFTUP</b> </dt>
  53. <dd></dd>
  54.  
  55. <dt><b>SDL_HAT_LEFTDOWN</b> </dt>
  56. <dd></dd>
  57. </dl>
  58.  
  59. <h2><a name='sect4' href='#toc4'>See Also</a></h2>
  60. <p>
  61. <i><b>SDL_JoystickNumHats</b></i> 
  62. <!--
  63.   
  64.  <p>
  65.  
  66. <hr><p>
  67. <a name='toc'><b>Table of Contents</b></a><p>
  68. <ul>
  69. <li><a name='toc0' href='#sect0'>Name</a></li>
  70. <li><a name='toc1' href='#sect1'>Synopsis</a></li>
  71. <li><a name='toc2' href='#sect2'>Description</a></li>
  72. <li><a name='toc3' href='#sect3'>Return Value</a></li>
  73. <li><a name='toc4' href='#sect4'>See Also</a></li>
  74. </ul>
  75. </body>
  76. </html>
  77.