glutIgnoreKeyRepeat man page on Darwin

Man page or keyword search:  
man Server   23457 pages
apropos Keyword Search (all sections)
Output format
Darwin logo
[printable version]

glutIgnoreKeyRepeat(3GLUT)	     GLUT	    glutIgnoreKeyRepeat(3GLUT)

NAME
       glutIgnoreKeyRepeat - determines if auto repeat keystrokes are reported
       to the current window

SYNTAX
       #include <GLUT/glut.h>

       void glutIgnoreKeyRepeat(int ignore);

ARGUMENTS
       ignore	 Non-zero indicates  auto  repeat  keystrokes  should  not  be
		 reported  by  the  keyboard and special callbacks; zero indi‐
		 cates that auto repeat keystrokes will be reported.

DESCRIPTION
       glutIgnoreKeyRepeat determines if auto repeat keystrokes	 are  reported
       to the current window.  The ignore auto repeat state of a window can be
       queried with glutDeviceGet(GLUT_DEVICE_IGNORE_KEY_REPEAT).

       Ignoring auto repeated keystrokes is generally done in conjunction with
       using  the glutKeyboardUpFunc and glutSpecialUpFunc callbacks to repeat
       key releases.  If you do not ignore auto repeated keystrokes, your GLUT
       application  will  experience  repeated release/press callbacks.	 Games
       using the keyboard will typically want to ignore key repeat.

GLUT IMPLEMENTATION NOTES FOR X11
       X11 sends KeyPress events repeatedly when the  window  system's	global
       auto  repeat  is	 enabled.   glutIgnoreKeyRepeat can prevent these auto
       repeated keystrokes from being reported as keyboard  or	special	 call‐
       backs, but there is still some minimal overhead by the X server to con‐
       tinually stream KeyPress events to the  GLUT  application.   The	 glut‐
       SetKeyRepeat routine can be used to actually disable the global sending
       of auto repeated KeyPress events.  Note that  glutSetKeyRepeat  affects
       the  global  window system auto repeat state so other applications will
       not auto repeat if you  disable	auto  repeat  globally	through	 glut‐
       SetKeyRepeat.

SEE ALSO
       glutSetKeyRepeat,  glutDeviceGet, glutKeyboardFunc, glutKeyboardUpFunc,
       glutSpecialFunc, glutSpecialUpFunc

AUTHOR
       Mark J. Kilgard (mjk@nvidia.com)

GLUT				      3.7	    glutIgnoreKeyRepeat(3GLUT)
[top]

List of man pages available for Darwin

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net