Merge remote-tracking branch 'svn/trunk' into git_master

This commit is contained in:
Diederick C. Niehorster 2018-09-29 09:36:01 +02:00
commit 263c106d9c

View File

@ -136,7 +136,8 @@ void fgSpaceballHandleXEvent(const XEvent *xev)
break; break;
case SPNAV_EVENT_BUTTON: case SPNAV_EVENT_BUTTON:
INVOKE_WCB(*spnav_win, SpaceButton, (sev.button.bnum, sev.button.press ? GLUT_DOWN : GLUT_UP)); /* button numbers are 1-based in glutSpaceballButtonFunc */
INVOKE_WCB(*spnav_win, SpaceButton, (sev.button.bnum + 1, sev.button.press ? GLUT_DOWN : GLUT_UP));
break; break;
default: default: