33#define WINDOW_SIZE_DEFAULT_WIDTH 1280
34#define WINDOW_SIZE_DEFAULT_HEIGHT 720
36#define MIN_FOV_DEG 30.0f
37#define MAX_FOV_DEG 80.0f
38#define MIN_FOV (tan((MIN_FOV_DEG / 2) * M_PI / 180.0f))
39#define MAX_FOV (tan((MAX_FOV_DEG / 2) * M_PI / 180.0f))
41#define MIN_HDR_MAXBRIGHTNESS 400.0
42#define MAX_HDR_MAXBRIGHTNESS 1000.0
44#define MIN_HDR_PAPERWHITE 80.0f
45#define MAX_HDR_PAPERWHITE 280.0f
47#define MAX_COLOR_SATURATION 2.0f
49#define MOUSEX_MAXIMUM 0.6
50#define MOUSEY_MAXIMUM 0.6
52#define MAX_CLEAR_DEPTH 10000000000.0
54#define INTERMEDIATE_CLEAR_DEPTH 100.0
59#define MOUSE_DOUBLE_CLICK_INTERVAL 0.40
60#define OOMOUSEWHEEL_EVENTS_DELAY_INTERVAL 0.05
61#define OOMOUSEWHEEL_DELTA 120
63#define SNAPSHOTS_PNG_FORMAT 1
64#define SNAPSHOTHDR_EXTENSION_EXR @".exr"
65#define SNAPSHOTHDR_EXTENSION_HDR @".hdr"
66#define SNAPSHOTHDR_EXTENSION_DEFAULT SNAPSHOTHDR_EXTENSION_EXR
209 BOOL atDesktopResolution;
210 unsigned keyboardMap;
212 MONITORINFOEX monitorInfo;
214 float _hdrMaxBrightness;
215 float _hdrPaperWhiteBrightness;
241- (void) initSplashScreen;
242- (void) endSplashScreen;
243- (void) autoShowMouse;
248- (void) allowStringInput: (BOOL) value;
252- (void) setTypedString:(NSString*) value;
265- (void) initialiseGLWithSize:(NSSize) v_size;
266- (void) initialiseGLWithSize:(NSSize) v_size useVideoMode:(BOOL) v_mode;
269- (BOOL) getCurrentMonitorInfo:(MONITORINFOEX *)mInfo;
270- (MONITORINFOEX) currentMonitorInfo;
271- (void) refreshDarKOrLightMode;
272- (BOOL) isDarkModeOn;
273- (BOOL) atDesktopResolution;
274- (float) hdrMaxBrightness;
275- (void) setHDRMaxBrightness:(
float)newMaxBrightness;
276- (float) hdrPaperWhiteBrightness;
277- (void) setHDRPaperWhiteBrightness:(
float)newPaperWhiteBrightness;
280- (void) adjustColorSaturation:(
float)colorSaturationAdjustment;
284- (void) grabMouseInsideGameWindow:(BOOL) value;
286- (void) stringToClipboard:(NSString *)stringToCopy;
288- (void) drawRect:(NSRect)rect;
290- (void) updateScreenWithVideoMode:(BOOL) v_mode;
293- (BOOL) snapShot:(NSString *)filename;
294#if SNAPSHOTS_PNG_FORMAT
295- (BOOL) pngSaveSurface:(NSString *)fileName withSurface:(SDL_Surface *)surf;
301- (void) setFullScreenMode:(BOOL)fsm;
304- (void) setDisplayMode:(
int)mode fullScreen:(BOOL)fsm;
307- (void) setScreenSize: (
int)sizeIndex;
310- (NSSize) modeAsSize: (
int)sizeIndex;
311- (void) saveWindowSize: (NSSize) windowSize;
314- (
int) findDisplayModeForWidth: (
unsigned int) d_width Height:(
unsigned int) d_height
315 Refresh: (
unsigned int)d_refresh;
320- (void) setVirtualJoystick:(
double) vmx :(
double) vmy;
325- (void) clearKey: (
int)theKey;
329- (BOOL) isDown: (
int) key;
339- (void) setMouseWheelDelta: (
float) newWheelDelta;
346- (void) setMouseInDeltaMode: (BOOL) inDelta;
348- (void) setGammaValue: (
float) value;
351- (void) setFov:(
float)value fromFraction:(BOOL)fromFraction;
352- (float) fov:(BOOL)inFraction;
354- (void) setMsaa:(BOOL)newMsaa;
364- (void) dumpRGBAToFileNamed:(NSString *)name
365 bytes:(uint8_t *)bytes
366 width:(NSUInteger)width
367 height:(NSUInteger)height
368 rowBytes:(NSUInteger)rowBytes;
369- (void) dumpRGBToFileNamed:(NSString *)name
370 bytes:(uint8_t *)bytes
371 width:(NSUInteger)width
372 height:(NSUInteger)height
373 rowBytes:(NSUInteger)rowBytes;
374- (void) dumpGrayToFileNamed:(NSString *)name
375 bytes:(uint8_t *)bytes
376 width:(NSUInteger)width
377 height:(NSUInteger)height
378 rowBytes:(NSUInteger)rowBytes;
379- (void) dumpGrayAlphaToFileNamed:(NSString *)name
380 bytes:(uint8_t *)bytes
381 width:(NSUInteger)width
382 height:(NSUInteger)height
383 rowBytes:(NSUInteger)rowBytes;
384- (void) dumpRGBAToRGBFileNamed:(NSString *)rgbName
385 andGrayFileNamed:(NSString *)grayName
386 bytes:(uint8_t *)bytes
387 width:(NSUInteger)width
388 height:(NSUInteger)height
389 rowBytes:(NSUInteger)rowBytes;
BOOL m_glContextInitialized
void suppressKeysUntilKeyUp()
NSMutableArray * getScreenSizeArray()
BOOL isOutputDisplayHDREnabled()
void initKeyMappingData()
int loadFullscreenSettings()
NSMutableDictionary * getNativeSize()
NSDictionary * keyMappings_shifted
float _mouseVirtualStickSensitivityFactor
void populateFullScreenModelist()
NSMutableString * typedString
NSMutableArray * screenSizes
int scancode2Unicode[NUM_KEYS]
NSPoint mouseDragStartPoint
NSPoint virtualJoystickPosition
BOOL isRunningOnPrimaryDisplayDevice()
OOOpenGLMatrixManager * getOpenGLMatrixManager()
NSTimeInterval timeSinceLastMouseWheel
OOOpenGLMatrixManager * matrixManager
NSTimeInterval timeIntervalAtLastClick
NSSize currentScreenSize()
NSDictionary * keyMappings_normal
GameController * gameController
typedef int(ZCALLBACK *close_file_func) OF((voidpf opaque