Deskflow 1.22.0.197
Keyboard and mouse sharing utility
Loading...
Searching...
No Matches
OSXMediaKeySupport.h
Go to the documentation of this file.
1/*
2 * Deskflow -- mouse and keyboard sharing utility
3 * SPDX-FileCopyrightText: (C) 2016 Symless Ltd.
4 * SPDX-License-Identifier: GPL-2.0-only WITH LicenseRef-OpenSSL-Exception
5 */
6
7#pragma once
8
9#import <Carbon/Carbon.h>
10#import <CoreFoundation/CoreFoundation.h>
11
12#include "deskflow/KeyTypes.h"
13
14#if defined(__cplusplus)
15extern "C"
16{
17#endif
19 bool isMediaKeyEvent(CGEventRef event);
20 bool getMediaKeyEventInfo(CGEventRef event, KeyID *keyId, bool *down, bool *isRepeat);
21#if defined(__cplusplus)
22}
23#endif
uint32_t KeyID
Key ID.
Definition KeyTypes.h:22
bool fakeNativeMediaKey(KeyID id)
Definition OSXMediaKeySupport.m:126
bool getMediaKeyEventInfo(CGEventRef event, KeyID *keyId, bool *down, bool *isRepeat)
Definition OSXMediaKeySupport.m:106
bool isMediaKeyEvent(CGEventRef event)
Definition OSXMediaKeySupport.m:89