]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/joytest/joytest.cpp
forwarding mouse moved events to the view under the mouse, not the firstResponder
[wxWidgets.git] / samples / joytest / joytest.cpp
index 0e4c851ca1ed8ce33596ec9945ba2b80d60c6a32..18e7812fb86ea55c60e78b970f438fc3746d61c9 100644 (file)
@@ -152,10 +152,10 @@ void MyCanvas::OnJoystickEvent(wxJoystickEvent& event)
             dc.SetPen(*wxBLACK_PEN);
             dc.DrawLine(xpos, ypos, pt.x, pt.y);
         }
             dc.SetPen(*wxBLACK_PEN);
             dc.DrawLine(xpos, ypos, pt.x, pt.y);
         }
-    }
 
 
-    xpos = pt.x;
-    ypos = pt.y;
+        xpos = pt.x;
+        ypos = pt.y;
+    }
 
 #if wxUSE_STATUSBAR
     wxString buf;
 
 #if wxUSE_STATUSBAR
     wxString buf;