deskflow/src/lib/platform/OSXMediaKeySupport.h
sithlord48 1085df54ed refactor: Reuse compliance
build files and documentation: MIT
  images / sources: GPL-2.0-only
  breeze icons: LGPL-2.0-only
  Microsoft MSM file, vc redist license
2025-01-27 17:05:47 -05:00

23 lines
545 B
Objective-C

/*
* Deskflow -- mouse and keyboard sharing utility
* SPDX-FileCopyrightText: (C) 2016 Symless Ltd.
* SPDX-License-Identifier: GPL-2.0-only WITH LicenseRef-OpenSSL-Exception
*/
#pragma once
#import <Carbon/Carbon.h>
#import <CoreFoundation/CoreFoundation.h>
#include "deskflow/key_types.h"
#if defined(__cplusplus)
extern "C"
{
#endif
bool fakeNativeMediaKey(KeyID id);
bool isMediaKeyEvent(CGEventRef event);
bool getMediaKeyEventInfo(CGEventRef event, KeyID *keyId, bool *down, bool *isRepeat);
#if defined(__cplusplus)
}
#endif