Added wxKeyEvent ctor for creating event of the different type for same key.
This is useful for implementation code in a couple of ports so provide a higher level ctor doing this instead of having to use a copy ctor and then manually changing the event type. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69891 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -744,6 +744,15 @@ wxKeyEvent::wxKeyEvent(const wxKeyEvent& evt)
|
||||
DoAssignMembers(evt);
|
||||
}
|
||||
|
||||
wxKeyEvent::wxKeyEvent(wxEventType eventType, const wxKeyEvent& evt)
|
||||
: wxEvent(evt),
|
||||
wxKeyboardState(evt)
|
||||
{
|
||||
DoAssignMembers(evt);
|
||||
|
||||
m_eventType = eventType;
|
||||
}
|
||||
|
||||
bool wxKeyEvent::IsKeyInCategory(int category) const
|
||||
{
|
||||
switch ( GetKeyCode() )
|
||||
|
Reference in New Issue
Block a user