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.
This commit is contained in:
Erick (CptBlackPixel) 2019-10-14 21:47:15 -03:00 committed by Greg Spencer
parent c2f1b09e6a
commit 49a8e451b8

View File

@ -60,6 +60,7 @@ public class KeyEventChannel {
message.put("source", event.source);
message.put("vendorId", event.vendorId);
message.put("productId", event.productId);
message.put("deviceId", event.deviceId);
}
/**