Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 49a8e45

Browse files
erickzanardogspencergoog
authored andcommitted
Adding deviceId to KeyEventChannel enconding method (#12958)
This Pull Request simple adds the deviceId property to the encoding method, I am preparing a next PR on the flutter repository that reads this info and add a property to RawKeyEventDataAndroid on the Flutter side. This is necessary so we can support multiple gamepads on Android, in order to be possible to make a local multiplayer game with Flutter.
1 parent c2f1b09 commit 49a8e45

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

shell/platform/android/io/flutter/embedding/engine/systemchannels/KeyEventChannel.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ private void encodeKeyEvent(@NonNull FlutterKeyEvent event, @NonNull Map<String,
6060
message.put("source", event.source);
6161
message.put("vendorId", event.vendorId);
6262
message.put("productId", event.productId);
63+
message.put("deviceId", event.deviceId);
6364
}
6465

6566
/**

0 commit comments

Comments
 (0)