GTK: use 3DConnexion button 0 instead of SI_APP_FIT_BUTTON.

The libspnav library doesn't even define SI_APP_FIT_BUTTON, which
appears to be Windows-specific functionality, perhaps a physical
button remapped with some logic. Just use 0 instead, since that
seems always safe.
This commit is contained in:
whitequark 2016-10-11 13:56:41 +00:00
parent 33c3fd5fce
commit adca3cd253

View File

@ -55,10 +55,7 @@
#include "../unix/gloffscreen.h"
#ifdef HAVE_SPACEWARE
# include <spnav.h>
# ifndef SI_APP_FIT_BUTTON
# define SI_APP_FIT_BUTTON 31
# endif
#include <spnav.h>
#endif
namespace SolveSpace {
@ -1523,7 +1520,7 @@ static GdkFilterReturn GdkSpnavFilter(GdkXEvent *gxevent, GdkEvent *, gpointer)
break;
case SPNAV_EVENT_BUTTON:
if(!sev.button.press && sev.button.bnum == SI_APP_FIT_BUTTON) {
if(!sev.button.press && sev.button.bnum == 0) {
SS.GW.SpaceNavigatorButtonUp();
}
break;