home *** CD-ROM | disk | FTP | other *** search
/ RISCWORLD 7 / RISCWORLD_VOL7.iso / Software / Issue4 / SDL / gcc346 / !SDL / man / SDL_SetModState.3 < prev    next >
Encoding:
Text File  |  2006-09-20  |  1.6 KB  |  59 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_SetModState"("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_SetModState- Set the current key modifier state 
  13. <h2><a name='sect1' href='#toc1'>Synopsis</a></h2>
  14. <p>
  15. <b>#include
  16. "SDL.h" <p>
  17. </b><b>void <b>SDL_SetModState</b></b>(<b>SDLMod modstate</b>); 
  18. <h2><a name='sect2' href='#toc2'>Description</a></h2>
  19. <p>
  20. The inverse of
  21. <i><b>SDL_GetModState</b></i>, <b>SDL_SetModState</b> allows you to impose modifier key states
  22. on your application. <p>
  23. Simply pass your desired modifier states into <b>modstate</b>.
  24. This value my be a logical OR'd combination of the following: <p>
  25. <br>
  26. <pre>CWtypedef enum {
  27.   KMOD_NONE  = 0x0000,
  28.   KMOD_LSHIFT= 0x0001,
  29.   KMOD_RSHIFT= 0x0002,
  30.   KMOD_LCTRL = 0x0040,
  31.   KMOD_RCTRL = 0x0080,
  32.   KMOD_LALT  = 0x0100,
  33.   KMOD_RALT  = 0x0200,
  34.   KMOD_LMETA = 0x0400,
  35.   KMOD_RMETA = 0x0800,
  36.   KMOD_NUM   = 0x1000,
  37.   KMOD_CAPS  = 0x2000,
  38.   KMOD_MODE  = 0x4000,
  39. } SDLMod;
  40. </pre><p>
  41.  
  42. <h2><a name='sect3' href='#toc3'>See Also</a></h2>
  43. <p>
  44. <i><b>SDL_GetModState</b></i> 
  45. <!--
  46.   
  47.  <p>
  48.  
  49. <hr><p>
  50. <a name='toc'><b>Table of Contents</b></a><p>
  51. <ul>
  52. <li><a name='toc0' href='#sect0'>Name</a></li>
  53. <li><a name='toc1' href='#sect1'>Synopsis</a></li>
  54. <li><a name='toc2' href='#sect2'>Description</a></li>
  55. <li><a name='toc3' href='#sect3'>See Also</a></li>
  56. </ul>
  57. </body>
  58. </html>
  59.