Changeset View
Changeset View
Standalone View
Standalone View
intern/ghost/intern/GHOST_SystemCocoa.mm
| Show First 20 Lines • Show All 1,390 Lines • ▼ Show 20 Lines | case NSMouseMoved: | ||||
| /* these events only happen on swiping trackpads or tablets */ | /* these events only happen on swiping trackpads or tablets */ | ||||
| /* warning: using tablet + trackpad at same time frustrates this static variable */ | /* warning: using tablet + trackpad at same time frustrates this static variable */ | ||||
| case NSEventTypeBeginGesture: | case NSEventTypeBeginGesture: | ||||
| m_hasMultiTouchTrackpad = 1; | m_hasMultiTouchTrackpad = 1; | ||||
| break; | break; | ||||
| case NSEventTypeEndGesture: | case NSEventTypeEndGesture: | ||||
| m_hasMultiTouchTrackpad = 0; | m_hasMultiTouchTrackpad = 0; | ||||
| pushEvent(new GHOST_EventTrackpad([event timestamp] * 1000, window, GHOST_kTrackpadEventUntouch, 0, 0, | |||||
| 0, 0)); | |||||
| break; | break; | ||||
| case NSScrollWheel: | case NSScrollWheel: | ||||
| { | { | ||||
| int *momentum = NULL; | int *momentum = NULL; | ||||
| if ([event respondsToSelector:@selector(momentumPhase)]) | if ([event respondsToSelector:@selector(momentumPhase)]) | ||||
| momentum = (int *)[event momentumPhase]; | momentum = (int *)[event momentumPhase]; | ||||
| ▲ Show 20 Lines • Show All 275 Lines • Show Last 20 Lines | |||||