relative-mouse-mode

This commit is contained in:
Romain Vimont 2021-12-26 23:21:58 +01:00
parent 1240e34fa8
commit 54d203dd1c

View file

@ -499,6 +499,10 @@ screen_init(struct screen *screen, const struct screen_params *params) {
SDL_AddEventWatch(event_watcher, screen);
#endif
if (SDL_SetRelativeMouseMode(true)) {
LOGE("Could not set relative mouse mode: %s", SDL_GetError());
}
static const struct sc_frame_sink_ops ops = {
.open = screen_frame_sink_open,
.close = screen_frame_sink_close,