mirror of
https://github.com/flame-engine/flame.git
synced 2025-11-01 01:18:38 +08:00
fix!: Migrate from RawKeyEvent to KeyEvent (#3002)
First pass at migrating from `RawKeyEvent` and `RawKeyboard` to `KeyEvent` and `HardwareKeyboard`. Context: https://docs.flutter.dev/release/breaking-changes/key-event-migration
This commit is contained in:
@ -142,7 +142,7 @@ Press T button to toggle player to collide with other objects.
|
||||
|
||||
@override
|
||||
KeyEventResult onKeyEvent(
|
||||
RawKeyEvent event,
|
||||
KeyEvent event,
|
||||
Set<LogicalKeyboardKey> keysPressed,
|
||||
) {
|
||||
for (final key in keysPressed) {
|
||||
|
||||
Reference in New Issue
Block a user