aboutsummaryrefslogtreecommitdiff
path: root/pugl/pugl_osx.m
diff options
context:
space:
mode:
Diffstat (limited to 'pugl/pugl_osx.m')
-rw-r--r--pugl/pugl_osx.m18
1 files changed, 18 insertions, 0 deletions
diff --git a/pugl/pugl_osx.m b/pugl/pugl_osx.m
index 250e5d55..d2681cb6 100644
--- a/pugl/pugl_osx.m
+++ b/pugl/pugl_osx.m
@@ -131,6 +131,9 @@ struct PuglInternalsImpl {
- (void) rightMouseDragged:(NSEvent*)event;
- (void) rightMouseDown:(NSEvent*)event;
- (void) rightMouseUp:(NSEvent*)event;
+- (void) otherMouseDragged:(NSEvent*)event;
+- (void) otherMouseDown:(NSEvent*)event;
+- (void) otherMouseUp:(NSEvent*)event;
- (void) scrollWheel:(NSEvent*)event;
- (void) keyDown:(NSEvent*)event;
- (void) keyUp:(NSEvent*)event;
@@ -303,6 +306,11 @@ getModifiers(PuglView* view, NSEvent* ev)
[self mouseMoved: event];
}
+- (void) otherMouseDragged:(NSEvent*)event
+{
+ [self mouseMoved: event];
+}
+
- (void) mouseDown:(NSEvent*)event
{
const NSPoint wloc = [self eventLocation:event];
@@ -352,6 +360,16 @@ getModifiers(PuglView* view, NSEvent* ev)
[self mouseUp: event];
}
+- (void) otherMouseDown:(NSEvent*)event
+{
+ [self mouseDown: event];
+}
+
+- (void) otherMouseUp:(NSEvent*)event
+{
+ [self mouseUp: event];
+}
+
- (void) scrollWheel:(NSEvent*)event
{
[self updateTrackingAreas];