Adding "MouseWheelTicks" to the "fgState" structure as a first step towards supporting fractional mouse wheel ticks
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@920 7f0cb862-5218-0410-a997-914c9d46530a
This commit is contained in:
parent
409b0c9f78
commit
25edeabab4
@ -86,6 +86,7 @@ SFG_State fgState = { { -1, -1, GL_FALSE }, /* Position */
|
|||||||
GL_FALSE, /* JoysticksInitialised */
|
GL_FALSE, /* JoysticksInitialised */
|
||||||
0, /* NumActiveJoysticks */
|
0, /* NumActiveJoysticks */
|
||||||
GL_FALSE, /* InputDevsInitialised */
|
GL_FALSE, /* InputDevsInitialised */
|
||||||
|
0, /* MouseWheelTicks */
|
||||||
1, /* AuxiliaryBufferNumber */
|
1, /* AuxiliaryBufferNumber */
|
||||||
4, /* SampleNumber */
|
4, /* SampleNumber */
|
||||||
1, /* MajorVersion */
|
1, /* MajorVersion */
|
||||||
@ -442,6 +443,8 @@ void fgDeinitialize( void )
|
|||||||
fgState.JoysticksInitialised = GL_FALSE;
|
fgState.JoysticksInitialised = GL_FALSE;
|
||||||
fgState.InputDevsInitialised = GL_FALSE;
|
fgState.InputDevsInitialised = GL_FALSE;
|
||||||
|
|
||||||
|
fgState.MouseWheelTicks = 0;
|
||||||
|
|
||||||
fgState.MajorVersion = 1;
|
fgState.MajorVersion = 1;
|
||||||
fgState.MinorVersion = 0;
|
fgState.MinorVersion = 0;
|
||||||
fgState.ContextFlags = 0;
|
fgState.ContextFlags = 0;
|
||||||
|
@ -339,6 +339,8 @@ struct tagSFG_State
|
|||||||
int NumActiveJoysticks; /* Number of active joysticks -- if zero, don't poll joysticks */
|
int NumActiveJoysticks; /* Number of active joysticks -- if zero, don't poll joysticks */
|
||||||
GLboolean InputDevsInitialised; /* Only initialize if application calls for them */
|
GLboolean InputDevsInitialised; /* Only initialize if application calls for them */
|
||||||
|
|
||||||
|
int MouseWheelTicks; /* Number of ticks the mouse wheel has turned */
|
||||||
|
|
||||||
int AuxiliaryBufferNumber; /* Number of auxiliary buffers */
|
int AuxiliaryBufferNumber; /* Number of auxiliary buffers */
|
||||||
int SampleNumber; /* Number of samples per pixel */
|
int SampleNumber; /* Number of samples per pixel */
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user