MeshLib
 
Loading...
Searching...
No Matches
MRTouchpadCocoaHandler.h
Go to the documentation of this file.
1#pragma once
2#ifdef __APPLE__
3
5
6#include <AppKit/AppKit.h>
7
8namespace MR
9{
10
12class TouchpadCocoaHandler : public TouchpadController::Handler
13{
14public:
15 explicit TouchpadCocoaHandler( GLFWwindow* window );
16 ~TouchpadCocoaHandler() override;
17
18 static void onMagnificationGestureEvent( NSView* view, SEL cmd, NSMagnificationGestureRecognizer* recognizer );
19 static void onRotationGestureEvent( NSView* view, SEL cmd, NSRotationGestureRecognizer* recognizer );
20 static void onScrollEvent( NSView* view, SEL cmd, NSEvent* event );
21
22private:
23 NSView* view_;
24
25 NSMagnificationGestureRecognizer* magnificationGestureRecognizer_;
26 NSRotationGestureRecognizer* rotationGestureRecognizer_;
27 IMP previousScrollWheelMethod_;
28};
29
30}
31
32#endif
Definition MRCameraOrientationPlugin.h:7