1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-09 23:34:20 +00:00

macOS: Add initial macOS 26 suport

This commit is contained in:
reuk 2025-06-10 12:05:50 +01:00
parent 46703f3e65
commit 6f1d116279
No known key found for this signature in database
3 changed files with 8 additions and 0 deletions

View file

@ -150,6 +150,10 @@ SystemStats::OperatingSystemType SystemStats::getOperatingSystemType()
case 13: return MacOS_13;
case 14: return MacOS_14;
case 15: return MacOS_15;
case 16:
case 26:
return MacOS_26;
}
return MacOSX;

View file

@ -79,6 +79,7 @@ public:
MacOS_13 = MacOSX | 18,
MacOS_14 = MacOSX | 19,
MacOS_15 = MacOSX | 20,
MacOS_26 = MacOSX | 21,
Win2000 = Windows | 1,
WinXP = Windows | 2,

View file

@ -1932,6 +1932,9 @@ private:
case NSEventTypeRightMouseUp:
case NSEventTypeOtherMouseUp:
case NSEventTypeOtherMouseDragged:
#if JUCE_MAC_API_VERSION_CAN_BE_BUILT (26, 0)
case NSEventTypeMouseCancelled:
#endif
if (Desktop::getInstance().getDraggingMouseSource (0) != nullptr)
return false;
break;