home *** CD-ROM | disk | FTP | other *** search
/ RISCWORLD 7 / RISCWORLD_VOL7.iso / Software / Issue4 / SDL / gcc346 / !SDL / man / SDL_EnableKeyRepeat.3 < prev    next >
Encoding:
Text File  |  2006-09-20  |  1.4 KB  |  45 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_EnableKeyRepeat"("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_EnableKeyRepeat- Set keyboard repeat rate. 
  13. <h2><a name='sect1' href='#toc1'>Synopsis</a></h2>
  14. <p>
  15. <b>#include "SDL.h"
  16. <p>
  17. </b><b>int <b>SDL_EnableKeyRepeat</b></b>(<b>int delay, int interval</b>); 
  18. <h2><a name='sect2' href='#toc2'>Description</a></h2>
  19. <p>
  20. Enables or
  21. disables the keyboard repeat rate. <b>delay</b> specifies how long the key must
  22. be pressed before it begins repeating, it then repeats at the speed specified
  23. by <b>interval</b>. Both <b>delay</b> and <b>interval</b> are expressed in milliseconds. <p>
  24. Setting
  25. <b>delay</b> to 0 disables key repeating completely. Good default values are <b>SDL_DEFAULT_REPEAT_DELAY</b>
  26. and <i>SDL_DEFAULT_REPEAT_INTERVAL</i>. 
  27. <h2><a name='sect3' href='#toc3'>Return Value</a></h2>
  28. <p>
  29. Returns <b>0</b> on success and <b>-1</b>
  30. on failure. 
  31. <!--
  32.   
  33.  <p>
  34.  
  35. <hr><p>
  36. <a name='toc'><b>Table of Contents</b></a><p>
  37. <ul>
  38. <li><a name='toc0' href='#sect0'>Name</a></li>
  39. <li><a name='toc1' href='#sect1'>Synopsis</a></li>
  40. <li><a name='toc2' href='#sect2'>Description</a></li>
  41. <li><a name='toc3' href='#sect3'>Return Value</a></li>
  42. </ul>
  43. </body>
  44. </html>
  45.