forked from firka/flutter
Adding deviceId to KeyEventChannel enconding method (flutter/engine#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:
committed by
Greg Spencer
parent
b2f97ff78b
commit
3cc363909a
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user