Lines Matching refs:motion
78 PlatformMouseEvent::PlatformMouseEvent(GdkEventMotion* motion)
80 m_timestamp = motion->time;
81 m_position = IntPoint((int)motion->x, (int)motion->y);
82 m_globalPosition = IntPoint((int)motion->x_root, (int)motion->y_root);
83 m_shiftKey = motion->state & GDK_SHIFT_MASK;
84 m_ctrlKey = motion->state & GDK_CONTROL_MASK;
85 m_altKey = motion->state & GDK_MOD1_MASK;
86 m_metaKey = motion->state & GDK_MOD2_MASK;
88 switch (motion->type) {
98 if (motion->state & GDK_BUTTON1_MASK)
100 else if (motion->state & GDK_BUTTON2_MASK)
102 else if (motion->state & GDK_BUTTON3_MASK)