src/haptic/darwin/SDL_syshaptic.c
changeset 8259 1816872373d5
parent 8247 fd220c4df418
child 8696 6bb798ddf205
equal deleted inserted replaced
8258:569354dec4e9 8259:1816872373d5
   154     io_iterator_t iter;
   154     io_iterator_t iter;
   155     CFDictionaryRef match;
   155     CFDictionaryRef match;
   156     io_service_t device;
   156     io_service_t device;
   157 
   157 
   158     if (numhaptics != -1) {
   158     if (numhaptics != -1) {
   159         return SDL_Error("Haptic subsystem already initialized!");
   159         return SDL_SetError("Haptic subsystem already initialized!");
   160     }
   160     }
   161     numhaptics = 0;
   161     numhaptics = 0;
   162 
   162 
   163     /* Get HID devices. */
   163     /* Get HID devices. */
   164     match = IOServiceMatching(kIOHIDDeviceKey);
   164     match = IOServiceMatching(kIOHIDDeviceKey);