Hi Jules,
When building with an old sdk that does not know [NSEvent modifiersFlag], this function:
[code]ModifierKeys ModifierKeys::getCurrentModifiersRealtime() noexcept
{
if ([NSEvent respondsToSelector: @selector (modifierFlags)])
NSViewComponentPeer::updateModifiers ([NSEvent modifierFlags]);
return NSViewComponentPeer::currentModifiers;
}
[/code]
ends up calling NSViewComponentPeer::updateModifiers(NSEvent *) instead of NSViewComponentPeer::updateModifiers(NSUInteger) . Adding an explicit cast fixes that: