init method

  1. @override
Future<void> init()

Initializes the service.

Implementation

@override
Future<void> init() async {
  if (isSdlSupported) initSdl();
  gamepads = List.generate(maxGamepads, MockGamepad.new);
  for (var i = 0; i < maxGamepads; i++) {
    await connect(i);
  }
}