diff options
| author | crupest <crupest@outlook.com> | 2022-02-04 13:50:17 +0800 |
|---|---|---|
| committer | crupest <crupest@outlook.com> | 2022-02-04 13:50:17 +0800 |
| commit | 5063fbbe00f5e6888cb271c80ccac38ca3b8fe3b (patch) | |
| tree | de9a85403409776ad345ec820c4a7cbf9f8935f9 /src/osx/gui/KeyboardPrivate.h | |
| parent | 3cff638896ed1bacd9953d5bf29542556e7abaf2 (diff) | |
| download | cru-5063fbbe00f5e6888cb271c80ccac38ca3b8fe3b.tar.gz cru-5063fbbe00f5e6888cb271c80ccac38ca3b8fe3b.tar.bz2 cru-5063fbbe00f5e6888cb271c80ccac38ca3b8fe3b.zip | |
...
Diffstat (limited to 'src/osx/gui/KeyboardPrivate.h')
| -rw-r--r-- | src/osx/gui/KeyboardPrivate.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/osx/gui/KeyboardPrivate.h b/src/osx/gui/KeyboardPrivate.h new file mode 100644 index 00000000..4d18bab6 --- /dev/null +++ b/src/osx/gui/KeyboardPrivate.h @@ -0,0 +1,9 @@ +#pragma once +#include "cru/osx/gui/Keyboard.hpp" + +#import <AppKit/NSEvent.h> + +namespace cru::platform::gui::osx { +NSString* ConvertKeyCodeToKeyEquivalent(KeyCode key_code); +NSEventModifierFlags ConvertKeyModifier(KeyModifier k); +} |
