VrInputEvent constructor

VrInputEvent({
  1. required VrInputType type,
  2. required VrInputSource source,
  3. String? targetId,
  4. Map<String, dynamic>? data,
  5. bool active = true,
  6. DateTime? timestamp,
})

Implementation

VrInputEvent({
  required VrInputType type,
  required VrInputSource source,
  String? targetId,
  Map<String, dynamic>? data,
  bool active = true,
  DateTime? timestamp,
}) : _type = type,
     _source = source,
     _targetId = targetId,
     _data = data,
     _active = active,
     _timestampMicrosecondsSinceEpoch =
         (timestamp ?? DateTime.now()).microsecondsSinceEpoch;