getHapticName method

String getHapticName(
  1. int index
)

Get the implementation dependent name of a haptic device.

SDL Docs

Implementation

String getHapticName(final int index) {
  final pointer = sdl.SDL_HapticName(index);
  if (pointer == nullptr) {
    throw SdlError(index, getError());
  }
  return pointer.cast<Utf8>().toDartString();
}