From 25edeabab42479498d9da4a1fab753a02515da12 Mon Sep 17 00:00:00 2001 From: fayjf Date: Fri, 27 May 2011 20:27:04 +0000 Subject: [PATCH] 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 --- freeglut/freeglut/src/freeglut_init.c | 3 +++ freeglut/freeglut/src/freeglut_internal.h | 2 ++ 2 files changed, 5 insertions(+) diff --git a/freeglut/freeglut/src/freeglut_init.c b/freeglut/freeglut/src/freeglut_init.c index bbe9ec8..cdb9e66 100644 --- a/freeglut/freeglut/src/freeglut_init.c +++ b/freeglut/freeglut/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/freeglut/freeglut/src/freeglut_internal.h b/freeglut/freeglut/src/freeglut_internal.h index cfd0f5a..510764a 100644 --- a/freeglut/freeglut/src/freeglut_internal.h +++ b/freeglut/freeglut/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 */