X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Ffreeglut_joystick.c;h=a786b4f73601392d8d16d626f97e0097c8cba8b6;hb=1334fab6bdba435989bf7a9112759dea1d4b3696;hp=82fc444eda8ddde2d9e5b242085ea7049a1671dc;hpb=f399c1be8440abd7ec6af0c09436e5adfa289182;p=freeglut diff --git a/src/freeglut_joystick.c b/src/freeglut_joystick.c index 82fc444..a786b4f 100644 --- a/src/freeglut_joystick.c +++ b/src/freeglut_joystick.c @@ -571,6 +571,7 @@ void fgJoystickPollWindow( SFG_Window* window ) /* * Execute the freeglut joystick callback now */ + fgSetWindow (window); window->Callbacks.Joystick( buttons, (int) (axes[ 0 ] * 1000.0f),