forked from AvaloniaUI/Avalonia
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Port of key handling improvements AvaloniaUI#12549 to 0.10
- Loading branch information
Showing
36 changed files
with
3,815 additions
and
1,315 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,15 @@ | ||
#ifndef keytransform_h | ||
#define keytransform_h | ||
|
||
#import <cstdint> | ||
#include "common.h" | ||
#include <map> | ||
|
||
extern std::map<int, AvnKey> s_KeyMap; | ||
AvnPhysicalKey PhysicalKeyFromScanCode(uint16_t scanCode); | ||
|
||
extern std::map<AvnKey, int> s_AvnKeyMap; | ||
AvnKey VirtualKeyFromScanCode(uint16_t scanCode, NSEventModifierFlags modifierFlags); | ||
|
||
extern std::map<int, const char*> s_QwertyKeyMap; | ||
NSString* KeySymbolFromScanCode(uint16_t scanCode, NSEventModifierFlags modifierFlags); | ||
|
||
extern std::map<AvnKey, int> s_UnicodeKeyMap; | ||
uint16_t MenuCharFromVirtualKey(AvnKey key); | ||
|
||
#endif |
Oops, something went wrong.