DebugControlsNode constructor

DebugControlsNode({
  1. Set<ControlEvent>? spatial,
  2. Set<ControlEvent>? collision,
  3. Set<ControlEvent>? input,
  4. Set<ControlEvent>? layout,
  5. Set<ControlEvent>? pause,
  6. Set<ControlEvent>? clear,
  7. Set<String> groups = const {'debug'},
  8. int? priority = -1000,
  9. bool? enabled,
})

Implementation

DebugControlsNode({
  Set<ControlEvent>? spatial,
  Set<ControlEvent>? collision,
  Set<ControlEvent>? input,
  Set<ControlEvent>? layout,
  Set<ControlEvent>? pause,
  Set<ControlEvent>? clear,
  this.groups = const {'debug'},
  super.priority = -1000,
  super.enabled,
}) : spatial = spatial ?? {const KeyPress(.f1)},
     collision = collision ?? {const KeyPress(.f2)},
     input = input ?? {const KeyPress(.f3)},
     layout = layout ?? {const KeyPress(.f4)},
     pause = pause ?? {const KeyPress(.f5)},
     clear = clear ?? {const KeyPress(.f6)};