git subrepo pull --force deps/lightrec
[pcsx_rearmed.git] / deps / libretro-common / include / defines / cocoa_defines.h
CommitLineData
3719602c
PC
1/* Copyright (C) 2010-2021 The RetroArch team\r
2 *\r
3 * ---------------------------------------------------------------------------------------\r
4 * The following license statement only applies to this file (cocoa_defines.h).\r
5 * ---------------------------------------------------------------------------------------\r
6 *\r
7 * Permission is hereby granted, free of charge,\r
8 * to any person obtaining a copy of this software and associated documentation files (the "Software"),\r
9 * to deal in the Software without restriction, including without limitation the rights to\r
10 * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software,\r
11 * and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\r
12 *\r
13 * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\r
14 *\r
15 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,\r
16 * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\r
17 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\r
18 * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,\r
19 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\r
20 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r
21 */\r
22\r
23#ifndef __COCOA_COMMON_DEFINES_H\r
24#define __COCOA_COMMON_DEFINES_H\r
25\r
26#include <AvailabilityMacros.h>\r
27\r
28#ifndef MAC_OS_X_VERSION_10_12\r
29#define MAC_OS_X_VERSION_10_12 101200\r
30#endif\r
31\r
32#if MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_12\r
33#define HAS_MACOSX_10_12 0\r
34#define NSEventModifierFlagCommand NSCommandKeyMask\r
35#define NSEventModifierFlagControl NSControlKeyMask\r
36#define NSEventModifierFlagHelp NSHelpKeyMask\r
37#define NSEventModifierFlagNumericPad NSNumericPadKeyMask\r
38#define NSEventModifierFlagOption NSAlternateKeyMask\r
39#define NSEventModifierFlagShift NSShiftKeyMask\r
40#define NSCompositingOperationSourceOver NSCompositeSourceOver\r
41#define NSEventMaskApplicationDefined NSApplicationDefinedMask\r
42#define NSEventTypeApplicationDefined NSApplicationDefined\r
43#define NSEventTypeCursorUpdate NSCursorUpdate\r
44#define NSEventTypeMouseMoved NSMouseMoved\r
45#define NSEventTypeMouseEntered NSMouseEntered\r
46#define NSEventTypeMouseExited NSMouseExited\r
47#define NSEventTypeLeftMouseDown NSLeftMouseDown\r
48#define NSEventTypeRightMouseDown NSRightMouseDown\r
49#define NSEventTypeOtherMouseDown NSOtherMouseDown\r
50#define NSEventTypeLeftMouseUp NSLeftMouseUp\r
51#define NSEventTypeRightMouseUp NSRightMouseUp\r
52#define NSEventTypeOtherMouseUp NSOtherMouseUp\r
53#define NSEventTypeLeftMouseDragged NSLeftMouseDragged\r
54#define NSEventTypeRightMouseDragged NSRightMouseDragged\r
55#define NSEventTypeOtherMouseDragged NSOtherMouseDragged\r
56#define NSEventTypeScrollWheel NSScrollWheel\r
57#define NSEventTypeKeyDown NSKeyDown\r
58#define NSEventTypeKeyUp NSKeyUp\r
59#define NSEventTypeFlagsChanged NSFlagsChanged\r
60#define NSEventMaskAny NSAnyEventMask\r
61#define NSWindowStyleMaskBorderless NSBorderlessWindowMask\r
62#define NSWindowStyleMaskClosable NSClosableWindowMask\r
63#define NSWindowStyleMaskFullScreen NSFullScreenWindowMask\r
64#define NSWindowStyleMaskMiniaturizable NSMiniaturizableWindowMask\r
65#define NSWindowStyleMaskResizable NSResizableWindowMask\r
66#define NSWindowStyleMaskTitled NSTitledWindowMask\r
67#define NSAlertStyleCritical NSCriticalAlertStyle\r
68#define NSAlertStyleInformational NSInformationalAlertStyle\r
69#define NSAlertStyleWarning NSWarningAlertStyle\r
70#define NSEventModifierFlagCapsLock NSAlphaShiftKeyMask\r
71#define NSControlSizeRegular NSRegularControlSize\r
72#else\r
73#define HAS_MACOSX_10_12 1\r
74#endif\r
75\r
76#endif\r