feat: adding KeyboardListenerComponent (#1594)

This commit is contained in:
Erick
2022-05-23 03:32:10 -03:00
committed by GitHub
parent 2e82dc95ec
commit c887c3616e
6 changed files with 282 additions and 2 deletions

View File

@ -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()),