getJoystickDeviceGuid method

SDL_JoystickGUID getJoystickDeviceGuid(
  1. int index
)

Get the implementation-dependent GUID for the joystick at a given device index.

SDL Docs

Implementation

SDL_JoystickGUID getJoystickDeviceGuid(final int index) {
  final g = sdl.SDL_JoystickGetDeviceGUID(index);
  if (g.data[0] == 0) {
    throw SdlError(0, getError());
  }
  return g;
}