src/sensor/windows/SDL_windowssensor.c
changeset 13838 02e41b30186f
parent 13776 74f7ed12a32b
child 13839 52dbeb97b294
equal deleted inserted replaced
13837:c18c3084bd77 13838:02e41b30186f
   349 
   349 
   350     if (WIN_CoInitialize() == S_OK) {
   350     if (WIN_CoInitialize() == S_OK) {
   351         SDL_windowscoinit = SDL_TRUE;
   351         SDL_windowscoinit = SDL_TRUE;
   352     }
   352     }
   353 
   353 
   354     hr = CoCreateInstance(&CLSID_SensorManager, NULL, CLSCTX_INPROC_SERVER, &IID_SensorManager, &SDL_sensor_manager);
   354     hr = CoCreateInstance(&CLSID_SensorManager, NULL, CLSCTX_INPROC_SERVER, &IID_SensorManager, (LPVOID *) &SDL_sensor_manager);
   355     if (FAILED(hr)) {
   355     if (FAILED(hr)) {
   356         return SDL_SetError("Couldn't create the sensor manager: 0x%.4x", hr);
   356         return SDL_SetError("Couldn't create the sensor manager: 0x%.4x", hr);
   357     }
   357     }
   358 
   358 
   359     hr = ISensorManager_SetEventSink(SDL_sensor_manager, &sensor_manager_events);
   359     hr = ISensorManager_SetEventSink(SDL_sensor_manager, &sensor_manager_events);