2021-05-18 22:15:04 +02:00
|
|
|
/* Copyright (C) 2010-2021 The RetroArch team
|
2019-06-24 14:49:18 +02:00
|
|
|
*
|
2021-05-18 22:15:04 +02:00
|
|
|
* ---------------------------------------------------------------------------------------
|
|
|
|
* The following license statement only applies to this file (cocoa_defines.h).
|
|
|
|
* ---------------------------------------------------------------------------------------
|
2019-06-24 14:49:18 +02:00
|
|
|
*
|
2021-05-18 22:15:04 +02:00
|
|
|
* Permission is hereby granted, free of charge,
|
|
|
|
* to any person obtaining a copy of this software and associated documentation files (the "Software"),
|
|
|
|
* to deal in the Software without restriction, including without limitation the rights to
|
|
|
|
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software,
|
|
|
|
* and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
2019-06-24 14:49:18 +02:00
|
|
|
*
|
2021-05-18 22:15:04 +02:00
|
|
|
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
|
|
*
|
|
|
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
|
|
|
|
* INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
|
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
|
|
* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
|
|
* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
|
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
2019-06-24 14:49:18 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __COCOA_COMMON_DEFINES_H
|
|
|
|
#define __COCOA_COMMON_DEFINES_H
|
|
|
|
|
2019-10-06 03:43:49 +02:00
|
|
|
#include <AvailabilityMacros.h>
|
|
|
|
|
2019-10-05 18:58:15 +02:00
|
|
|
#ifndef MAC_OS_X_VERSION_10_12
|
|
|
|
#define MAC_OS_X_VERSION_10_12 101200
|
|
|
|
#endif
|
|
|
|
|
2019-06-24 14:49:18 +02:00
|
|
|
#if MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_12
|
2022-01-24 16:22:07 +01:00
|
|
|
#define HAS_MACOSX_10_12 0
|
2019-06-24 14:49:18 +02:00
|
|
|
#define NSEventModifierFlagCommand NSCommandKeyMask
|
|
|
|
#define NSEventModifierFlagControl NSControlKeyMask
|
|
|
|
#define NSEventModifierFlagHelp NSHelpKeyMask
|
|
|
|
#define NSEventModifierFlagNumericPad NSNumericPadKeyMask
|
|
|
|
#define NSEventModifierFlagOption NSAlternateKeyMask
|
|
|
|
#define NSEventModifierFlagShift NSShiftKeyMask
|
|
|
|
#define NSCompositingOperationSourceOver NSCompositeSourceOver
|
|
|
|
#define NSEventMaskApplicationDefined NSApplicationDefinedMask
|
|
|
|
#define NSEventTypeApplicationDefined NSApplicationDefined
|
|
|
|
#define NSEventTypeCursorUpdate NSCursorUpdate
|
|
|
|
#define NSEventTypeMouseMoved NSMouseMoved
|
|
|
|
#define NSEventTypeMouseEntered NSMouseEntered
|
|
|
|
#define NSEventTypeMouseExited NSMouseExited
|
|
|
|
#define NSEventTypeLeftMouseDown NSLeftMouseDown
|
|
|
|
#define NSEventTypeRightMouseDown NSRightMouseDown
|
|
|
|
#define NSEventTypeOtherMouseDown NSOtherMouseDown
|
|
|
|
#define NSEventTypeLeftMouseUp NSLeftMouseUp
|
|
|
|
#define NSEventTypeRightMouseUp NSRightMouseUp
|
|
|
|
#define NSEventTypeOtherMouseUp NSOtherMouseUp
|
|
|
|
#define NSEventTypeLeftMouseDragged NSLeftMouseDragged
|
|
|
|
#define NSEventTypeRightMouseDragged NSRightMouseDragged
|
|
|
|
#define NSEventTypeOtherMouseDragged NSOtherMouseDragged
|
|
|
|
#define NSEventTypeScrollWheel NSScrollWheel
|
|
|
|
#define NSEventTypeKeyDown NSKeyDown
|
|
|
|
#define NSEventTypeKeyUp NSKeyUp
|
|
|
|
#define NSEventTypeFlagsChanged NSFlagsChanged
|
|
|
|
#define NSEventMaskAny NSAnyEventMask
|
|
|
|
#define NSWindowStyleMaskBorderless NSBorderlessWindowMask
|
|
|
|
#define NSWindowStyleMaskClosable NSClosableWindowMask
|
|
|
|
#define NSWindowStyleMaskFullScreen NSFullScreenWindowMask
|
|
|
|
#define NSWindowStyleMaskMiniaturizable NSMiniaturizableWindowMask
|
|
|
|
#define NSWindowStyleMaskResizable NSResizableWindowMask
|
|
|
|
#define NSWindowStyleMaskTitled NSTitledWindowMask
|
|
|
|
#define NSAlertStyleCritical NSCriticalAlertStyle
|
2019-10-05 18:58:15 +02:00
|
|
|
#define NSAlertStyleInformational NSInformationalAlertStyle
|
|
|
|
#define NSAlertStyleWarning NSWarningAlertStyle
|
|
|
|
#define NSEventModifierFlagCapsLock NSAlphaShiftKeyMask
|
2019-06-24 14:49:18 +02:00
|
|
|
#define NSControlSizeRegular NSRegularControlSize
|
2022-01-24 16:22:07 +01:00
|
|
|
#else
|
|
|
|
#define HAS_MACOSX_10_12 1
|
2019-06-24 14:49:18 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|