mirror of
https://github.com/moonlight-stream/moonlight-ios.git
synced 2025-07-03 08:15:31 +00:00
23 lines
525 B
Objective-C
23 lines
525 B
Objective-C
//
|
|
// KeyboardSupport.h
|
|
// Moonlight
|
|
//
|
|
// Created by Diego Waxemberg on 8/25/18.
|
|
// Copyright © 2018 Moonlight Game Streaming Project. All rights reserved.
|
|
//
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
@interface KeyboardSupport : NSObject
|
|
|
|
struct KeyEvent {
|
|
u_short keycode;
|
|
u_short modifierKeycode;
|
|
u_char modifier;
|
|
};
|
|
|
|
+ (BOOL)sendKeyEvent:(UIKey*)key down:(BOOL)down API_AVAILABLE(ios(13.4));
|
|
+ (struct KeyEvent) translateKeyEvent:(unichar) inputChar withModifierFlags:(UIKeyModifierFlags)modifierFlags;
|
|
|
|
@end
|