camera: use cdevice SDL_Event union member

This commit is contained in:
Anonymous Maarten authored and Ryan C. Gordon committed 2024-08-15 09:20:34 -04:00
1 parent f95027e3d7
commit 612b41c451
1 file changed
+1 -1
+1 -1
View File
@@ -1538,7 +1538,7 @@ void SDL_UpdateCamera(void)
SDL_Event event;
SDL_zero(event);
event.type = i->type;
event.adevice.which = (Uint32) i->devid;
event.cdevice.which = (Uint32) i->devid;
SDL_PushEvent(&event);
}
SDL_free(i);