X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ab826fd86ffd5aadd2246c14337369aa6af9fab5..db5a2bff58b2dadd6c657afa57e0e723b9cab71d:/include/wx/mousestate.h diff --git a/include/wx/mousestate.h b/include/wx/mousestate.h index 7ad3ec4999..1e6dc5070d 100644 --- a/include/wx/mousestate.h +++ b/include/wx/mousestate.h @@ -118,6 +118,15 @@ public: // this mostly makes sense in the derived classes such as wxMouseEvent void SetState(const wxMouseState& state) { *this = state; } + // these functions are for compatibility only, they were used in 2.8 + // version of wxMouseState but their names are confusing as wxMouseEvent + // has methods with the same names which do something quite different so + // don't use them any more +#ifdef WXWIN_COMPATIBILITY_2_8 + wxDEPRECATED_INLINE(bool LeftDown() const, return LeftIsDown(); ) + wxDEPRECATED_INLINE(bool MiddleDown() const, return MiddleIsDown(); ) + wxDEPRECATED_INLINE(bool RightDown() const, return RightIsDown(); ) +#endif // WXWIN_COMPATIBILITY_2_8 // for compatibility reasons these variables are public as the code using // wxMouseEvent often uses them directly -- however they should not be