Generate RawKeyEvents for iOS 13.4+ (#65193)
* Added RawKeyEvent support for iOS * Removed unused remnant * added some missing keys * Removed trailing whitespaces * commit for build * Added mapping names * Made iOS keycodes generatable and collectable * Fixed naming and formatting issues * fixed raw_keyboard_test
This commit is contained in:
@@ -11,6 +11,7 @@ import 'package:path/path.dart' as path;
|
||||
|
||||
import 'package:gen_keycodes/android_code_gen.dart';
|
||||
import 'package:gen_keycodes/base_code_gen.dart';
|
||||
import 'package:gen_keycodes/ios_code_gen.dart';
|
||||
import 'package:gen_keycodes/macos_code_gen.dart';
|
||||
import 'package:gen_keycodes/fuchsia_code_gen.dart';
|
||||
import 'package:gen_keycodes/glfw_code_gen.dart';
|
||||
@@ -252,7 +253,7 @@ Future<void> main(List<String> rawArguments) async {
|
||||
print('Writing ${'key maps'.padRight(15)}${mapsFile.absolute}');
|
||||
await mapsFile.writeAsString(KeyboardMapsCodeGenerator(data).generate());
|
||||
|
||||
for (final String platform in <String>['android', 'darwin', 'glfw', 'fuchsia', 'linux', 'windows', 'web']) {
|
||||
for (final String platform in <String>['android', 'macos', 'ios', 'glfw', 'fuchsia', 'linux', 'windows', 'web']) {
|
||||
PlatformCodeGenerator codeGenerator;
|
||||
switch (platform) {
|
||||
case 'glfw':
|
||||
@@ -264,9 +265,12 @@ Future<void> main(List<String> rawArguments) async {
|
||||
case 'android':
|
||||
codeGenerator = AndroidCodeGenerator(data);
|
||||
break;
|
||||
case 'darwin':
|
||||
case 'macos':
|
||||
codeGenerator = MacOsCodeGenerator(data);
|
||||
break;
|
||||
case 'ios':
|
||||
codeGenerator = IosCodeGenerator(data);
|
||||
break;
|
||||
case 'windows':
|
||||
codeGenerator = WindowsCodeGenerator(data);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user