* Some WXWIN_COMPATIBILITY_2_4 changes, as well as flagging other
things that will need fixing when WXWIN_COMPATIBILITY_2_4 is turned off. * Create a custom version of the "default" ctor for wxCursor on wxGTK * Switch to new format string and name string constants for default values * Changes some public data members of event classes into properties as they are no longer public in the C++. * Added wxSL_INVERSE git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31555 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -172,12 +172,6 @@ public:
|
||||
class wxJoystickEvent : public wxEvent
|
||||
{
|
||||
public:
|
||||
wxPoint m_pos;
|
||||
int m_zPosition;
|
||||
int m_buttonChange; // Which button changed?
|
||||
int m_buttonState; // Which buttons are down?
|
||||
int m_joyStick; // Which joystick?
|
||||
|
||||
wxJoystickEvent(wxEventType type = wxEVT_NULL,
|
||||
int state = 0,
|
||||
int joystick = wxJOYSTICK1,
|
||||
@@ -212,6 +206,14 @@ public:
|
||||
|
||||
// Was the given button 1,2,3,4 or any in Down state?
|
||||
bool ButtonIsDown(int but = wxJOY_BUTTON_ANY) const;
|
||||
|
||||
%pythoncode {
|
||||
m_pos = property(GetPosition, SetPosition)
|
||||
m_zPosition = property(GetZPosition, SetZPosition)
|
||||
m_buttonChange = property(GetButtonChange, SetButtonChange)
|
||||
m_buttonState = property(GetButtonState, SetButtonState)
|
||||
m_joyStick = property(GetJoystick, SetJoystick)
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user