-
Notifications
You must be signed in to change notification settings - Fork 133
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add bluetooth keyboard support for appstore
By using private APIs, we have a perfect keyboard support (see DosPadUIApplication). However, that's not allowed in appstore. By using an invisible text input, we can capture external keyboard events and translate to emulator key events. However, it's only good for text input, not game control. We also support arrows, ctrl-?, alt-?, pageup/down, ...
- Loading branch information
Chaoji Li
committed
Oct 17, 2020
1 parent
0e72821
commit ca16f91
Showing
15 changed files
with
351 additions
and
975 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
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
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
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// | ||
// KeyboardSpy.h | ||
// | ||
// Listening on external keyboard input. | ||
// SDL has an implementation but that's tightly coupled with the | ||
// screen view, and it's not a great solution for iDOS. | ||
// | ||
#import <UIKit/UIKit.h> | ||
|
||
NS_ASSUME_NONNULL_BEGIN | ||
|
||
@interface KeyboardSpy : UIView<UIKeyInput> | ||
@property (nonatomic, assign) BOOL active; | ||
@end | ||
|
||
NS_ASSUME_NONNULL_END |
Oops, something went wrong.