Applied wheel mouse patch.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26241 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling 2004-03-17 09:42:04 +00:00
parent 0082709429
commit 58d185f709
2 changed files with 4 additions and 0 deletions

View File

@ -1365,6 +1365,7 @@ static gint gtk_window_key_release_callback( GtkWidget *widget,
event.m_rightDown = (gdk_event->state & GDK_BUTTON3_MASK); \
if (event.GetEventType()==wxEVT_MOUSEWHEEL) \
{ \
event.m_linesPerAction = 3; \
if (((GdkEventButton*)gdk_event)->button == 4) \
event.m_wheelRotation = 120; \
else if (((GdkEventButton*)gdk_event)->button == 5) \
@ -1851,6 +1852,7 @@ static gint gtk_window_wheel_callback (GtkWidget * widget,
event.m_leftDown = (gdk_event->state & GDK_BUTTON1_MASK);
event.m_middleDown = (gdk_event->state & GDK_BUTTON2_MASK);
event.m_rightDown = (gdk_event->state & GDK_BUTTON3_MASK);
event.m_linesPerAction = 3;
if (gdk_event->direction == GDK_SCROLL_UP)
event.m_wheelRotation = 120;
else

View File

@ -1365,6 +1365,7 @@ static gint gtk_window_key_release_callback( GtkWidget *widget,
event.m_rightDown = (gdk_event->state & GDK_BUTTON3_MASK); \
if (event.GetEventType()==wxEVT_MOUSEWHEEL) \
{ \
event.m_linesPerAction = 3; \
if (((GdkEventButton*)gdk_event)->button == 4) \
event.m_wheelRotation = 120; \
else if (((GdkEventButton*)gdk_event)->button == 5) \
@ -1851,6 +1852,7 @@ static gint gtk_window_wheel_callback (GtkWidget * widget,
event.m_leftDown = (gdk_event->state & GDK_BUTTON1_MASK);
event.m_middleDown = (gdk_event->state & GDK_BUTTON2_MASK);
event.m_rightDown = (gdk_event->state & GDK_BUTTON3_MASK);
event.m_linesPerAction = 3;
if (gdk_event->direction == GDK_SCROLL_UP)
event.m_wheelRotation = 120;
else