mirror of
https://github.com/debauchee/barrier.git
synced 2025-08-02 08:09:29 +02:00
Update input-event handing to Quartz-taps on OS X
Created by mthiel Issue #238
This commit is contained in:
parent
985648a95f
commit
9515338c75
4 changed files with 203 additions and 223 deletions
|
@ -54,6 +54,12 @@ public:
|
|||
*/
|
||||
KeyModifierMask mapModifiersFromOSX(UInt32 mask) const;
|
||||
|
||||
//! Convert CG flags-style modifier mask to old-style Carbon
|
||||
/*!
|
||||
Still required in a few places for translation calls.
|
||||
*/
|
||||
KeyModifierMask mapModifiersToCarbon(UInt32 mask) const;
|
||||
|
||||
//! Map key event to keys
|
||||
/*!
|
||||
Converts a key event into a sequence of KeyIDs and the shadow modifier
|
||||
|
@ -63,7 +69,7 @@ public:
|
|||
KeyID.
|
||||
*/
|
||||
KeyButton mapKeyFromEvent(CKeyIDs& ids,
|
||||
KeyModifierMask* maskOut, EventRef event) const;
|
||||
KeyModifierMask* maskOut, CGEventRef event) const;
|
||||
|
||||
//! Map key and mask to native values
|
||||
/*!
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue