summaryrefslogtreecommitdiffstats
path: root/Samples/CommonSrc/Platform/OSX_PlatformObjc.h
blob: 7e69a4df3cd147e87ee118fc4f5bec3ff0375717 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31

#import <Cocoa/Cocoa.h>
#import "OSX_Platform.h"
#import "OSX_Gamepad.h"

#import <CoreGraphics/CoreGraphics.h>
#import <CoreGraphics/CGDirectDisplay.h>

@interface OVRApp : NSApplication

@property (assign) IBOutlet NSWindow* win;
@property (assign) OVR::Platform::OSX::PlatformCore* Platform;
@property (assign) OVR::Platform::Application* App;

-(void) run;

@end

@interface OVRView : NSOpenGLView <NSWindowDelegate>

@property (assign) OVR::Platform::OSX::PlatformCore* Platform;
@property (assign) OVR::Platform::Application* App;
@property unsigned long Modifiers;

-(void)ProcessMouse:(NSEvent*)event;
-(void)warpMouseToCenter;

+(CGDirectDisplayID) displayFromScreen:(NSScreen*)s;

@end