glutSetKeyRepeat man page

glutSetKeyRepeat ā€” Sets autorepeat behavior for all OpenGLUT windows.

Library

OpenGLUT - inputstate

Synopsis

#include <openglut.h>

void
glutSetKeyRepeat(int repeatMode);

Parameters

repeatMode

On, Off or Default.

Description

glutSetKeyRepeat() is similar to glutIgnoreKeyRepeat() but sets the behavior for OpenGLUT in general, rather than for a particular window. The options for

repeatMode

are:

-

GLUT_KEY_REPEAT_OFF

Turn off repeat for all windows.
-

GLUT_KEY_REPEAT_ON

Turn on repeat for all windows.
-

GLUT_KEY_REPEAT_DEFAULT

Respect the window's setting.

See Also

glutIgnoreKeyRepeat(3)

Referenced By

glutIgnoreKeyRepeat(3).

August 9, 2018