X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b87654f3fd52a9b6c1ebf5a3ff57c85b6c5631d6..a61ddc471531869786496b6f3596380ac01202ed:/include/wx/event.h diff --git a/include/wx/event.h b/include/wx/event.h index 5598cf8d25..71c3bcfb61 100644 --- a/include/wx/event.h +++ b/include/wx/event.h @@ -1017,7 +1017,7 @@ public: // Was it a button event? (*doesn't* mean: is any button *down*?) bool IsButton() const { return ((GetEventType() == wxEVT_JOY_BUTTON_DOWN) || - (GetEventType() == wxEVT_JOY_BUTTON_DOWN)); } + (GetEventType() == wxEVT_JOY_BUTTON_UP)); } // Was it a move event? bool IsMove() const { return (GetEventType() == wxEVT_JOY_MOVE) ; }