onSessionEvent method
void
onSessionEvent(
- Event event
Implementation
void onSessionEvent(Event event) {
final controllerIndex = controllerInputSources.indexOf( event.inputSource);
if ( controllerIndex == - 1 ) {
return;
}
final controller = controllers[ controllerIndex ];
if ( controller != null ) {
controller.update( event.inputSource, event.frame, customReferenceSpace ?? referenceSpace );
controller.dispatchEvent(Event(type: event.type, data: event.inputSource));
}
}