From: John F. Fay Date: Fri, 27 May 2011 20:27:04 +0000 (+0000) Subject: Adding "MouseWheelTicks" to the "fgState" structure as a first step towards supportin... X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=commitdiff_plain;h=4cb147e54debc316cb9c142159873ad24e0359ad;p=freeglut Adding "MouseWheelTicks" to the "fgState" structure as a first step towards supporting fractional mouse wheel ticks git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@920 7f0cb862-5218-0410-a997-914c9d46530a --- diff --git a/src/freeglut_init.c b/src/freeglut_init.c index bbe9ec8..cdb9e66 100644 --- a/src/freeglut_init.c +++ b/src/freeglut_init.c @@ -86,6 +86,7 @@ SFG_State fgState = { { -1, -1, GL_FALSE }, /* Position */ GL_FALSE, /* JoysticksInitialised */ 0, /* NumActiveJoysticks */ GL_FALSE, /* InputDevsInitialised */ + 0, /* MouseWheelTicks */ 1, /* AuxiliaryBufferNumber */ 4, /* SampleNumber */ 1, /* MajorVersion */ @@ -442,6 +443,8 @@ void fgDeinitialize( void ) fgState.JoysticksInitialised = GL_FALSE; fgState.InputDevsInitialised = GL_FALSE; + fgState.MouseWheelTicks = 0; + fgState.MajorVersion = 1; fgState.MinorVersion = 0; fgState.ContextFlags = 0; diff --git a/src/freeglut_internal.h b/src/freeglut_internal.h index cfd0f5a..510764a 100644 --- a/src/freeglut_internal.h +++ b/src/freeglut_internal.h @@ -339,6 +339,8 @@ struct tagSFG_State int NumActiveJoysticks; /* Number of active joysticks -- if zero, don't poll joysticks */ 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 SampleNumber; /* Number of samples per pixel */