4a4f400ca7
The code had the incorrect assumption that button numbers mapped to the wheel follow after the last "real" button as returned by the GLUT_NUM_MOUSE_BUTTONS query, which in turn resolves to a call to XGetPointerMapping. In reality the X server always sends button presses for 4 and 5 when a wheel is turned down/up respectively, and the rest of the mouse buttons (if any) follow afterwards. Also XGetPointerMapping doesn't seem to reliably return the number of actual buttons, and in any case the wheel "buttons" are certainly included in the count as they can be remapped. Since we can't know if buttons after 5 are further wheels or regular buttons this modification only ever invokes the wheel callback for wheel 0. git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@1844 7f0cb862-5218-0410-a997-914c9d46530a |
||
---|---|---|
.github | ||
freeglut | ||
.gitattributes | ||
.gitignore | ||
README.md |
FreeGLUT
This readme file applies to the git clone of FreeGLUT's svn repo on sourceforge.net that is hosted on github. This is provided here to enable user to contribute easier.
Every effort is made to ensure that the git_master
branch only progresses in a fastforward manner, but complete guarantees cannot be given as the sourceforge.net trunk is at all times leading.
I will be unable to merge a pull request if the github clone is behind svn/trunk
on sourceforge.net. Should you detect this, please contact me, maybe through making an issue here on github.
This copy of the svn repository was not created with git svn
but with the excellent svn support of SmartGit.
Notes to self on how to work with this: Basic workflow upon receiving a pull request is as follows:
- Merge pull request on github
- pull in changes to my local clone of the
git_master
branch. - cherry pick the merged commits onto my local clone of the
svn/trunk
branch - push these commits to svn remote (this alters the commits in the local
svn/trunk
clone as extra meta data is added) - merge
svn/trunk
into localgit_master
- push merge commit to github (its fast forward!)