GLUTJOYSTICKFUNC

Section: C Library Functions (3)
Updated: LOCAL
Page Index

BSD mandoc
 

NAME

glutJoystickFunc - Reports joystick state for the current window.  

LIBRARY

OpenGLUT - input  

SYNOPSIS

In openglut.h Ft void Fn glutJoystickFunc void( *callback )( unsigned int buttons int xaxis int yaxis int zaxis ) int pollInterval  

PARAMETERS

Bf Em
 callback Ef
      Client function for joystick events

Bf Em
 pollInterval Ef
  Approximate (minimum) millisecond interval  

DESCRIPTION

The callback is called roughly every Bf Sy
 pollinterval Ef
  milliseconds, and will give the joystick status.

The Bf Sy
 buttons Ef
 bitmask is a bit-wise  Bf Sy
 OR Ef
 of:
 - GLUT_JOYSTICK_BUTTON_A
 - GLUT_JOYSTICK_BUTTON_B
 - GLUT_JOYSTICK_BUTTON_C
 - GLUT_JOYSTICK_BUTTON_D

The axis values are in the range [-1000,1000].


 

Index

NAME
LIBRARY
SYNOPSIS
PARAMETERS
DESCRIPTION