controller property
GameController?
controller
Get a controller associated with this joystick.
If this method returns null
, use the Sdl.openGameController to open
the controller, using instanceId.
Implementation
GameController? get controller {
final handle = sdl.sdl.SDL_GameControllerFromInstanceID(instanceId);
if (handle == nullptr) {
return null;
}
return GameController(sdl, handle);
}