update delegates to accept a List<InputEvent>, not Set
This commit is contained in:
@@ -89,7 +89,7 @@ class OrbitInputHandlerDelegate implements InputHandlerDelegate {
|
||||
}
|
||||
|
||||
@override
|
||||
Future<void> handle(Set<InputEvent> events) async {
|
||||
Future<void> handle(List<InputEvent> events) async {
|
||||
final activeCamera = await view.getCamera();
|
||||
if (!_isInitialized) {
|
||||
await _initializeFromCamera(activeCamera);
|
||||
|
||||
@@ -12,8 +12,9 @@ class FreeFlightInputHandlerDelegateV2 implements InputHandlerDelegate {
|
||||
{this.sensitivity = const InputSensitivityOptions()});
|
||||
|
||||
double? _scaleDelta;
|
||||
|
||||
@override
|
||||
Future<void> handle(Set<InputEvent> events) async {
|
||||
Future<void> handle(List<InputEvent> events) async {
|
||||
Vector2 rotation = Vector2.zero();
|
||||
Vector3 translation = Vector3.zero();
|
||||
|
||||
@@ -103,8 +104,6 @@ class FreeFlightInputHandlerDelegateV2 implements InputHandlerDelegate {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
|
||||
var updated = current *
|
||||
Matrix4.compose(
|
||||
translation,
|
||||
|
||||
Reference in New Issue
Block a user