mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-05-28 11:57:24 +08:00
camera: use cdevice SDL_Event union member
This commit is contained in:
committed by
Ryan C. Gordon
parent
f95027e3d7
commit
612b41c451
@@ -1538,7 +1538,7 @@ void SDL_UpdateCamera(void)
|
|||||||
SDL_Event event;
|
SDL_Event event;
|
||||||
SDL_zero(event);
|
SDL_zero(event);
|
||||||
event.type = i->type;
|
event.type = i->type;
|
||||||
event.adevice.which = (Uint32) i->devid;
|
event.cdevice.which = (Uint32) i->devid;
|
||||||
SDL_PushEvent(&event);
|
SDL_PushEvent(&event);
|
||||||
}
|
}
|
||||||
SDL_free(i);
|
SDL_free(i);
|
||||||
|
|||||||
Reference in New Issue
Block a user