mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
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:
parent
c2f1b09e6a
commit
49a8e451b8
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user