mirror of
https://github.com/flame-engine/flame.git
synced 2025-11-01 10:38:17 +08:00
feat: adding KeyboardListenerComponent (#1594)
This commit is contained in:
@ -6,6 +6,7 @@ import 'package:examples/stories/input/hoverables_example.dart';
|
||||
import 'package:examples/stories/input/joystick_advanced_example.dart';
|
||||
import 'package:examples/stories/input/joystick_example.dart';
|
||||
import 'package:examples/stories/input/keyboard_example.dart';
|
||||
import 'package:examples/stories/input/keyboard_listener_component_example.dart';
|
||||
import 'package:examples/stories/input/mouse_cursor_example.dart';
|
||||
import 'package:examples/stories/input/mouse_movement_example.dart';
|
||||
import 'package:examples/stories/input/multitap_advanced_example.dart';
|
||||
@ -48,6 +49,12 @@ void addInputStories(Dashbook dashbook) {
|
||||
codeLink: baseLink('input/keyboard_example.dart'),
|
||||
info: KeyboardExample.description,
|
||||
)
|
||||
..add(
|
||||
'Keyboard (Component)',
|
||||
(_) => GameWidget(game: KeyboardListenerComponentExample()),
|
||||
codeLink: baseLink('input/keyboard_component_example.dart'),
|
||||
info: KeyboardListenerComponentExample.description,
|
||||
)
|
||||
..add(
|
||||
'Mouse Movement',
|
||||
(_) => GameWidget(game: MouseMovementExample()),
|
||||
|
||||
Reference in New Issue
Block a user