mirror of
https://github.com/Genymobile/scrcpy.git
synced 2025-08-03 14:49:29 +00:00
relative-mouse-mode
This commit is contained in:
parent
1240e34fa8
commit
54d203dd1c
1 changed files with 4 additions and 0 deletions
|
@ -499,6 +499,10 @@ screen_init(struct screen *screen, const struct screen_params *params) {
|
||||||
SDL_AddEventWatch(event_watcher, screen);
|
SDL_AddEventWatch(event_watcher, screen);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
if (SDL_SetRelativeMouseMode(true)) {
|
||||||
|
LOGE("Could not set relative mouse mode: %s", SDL_GetError());
|
||||||
|
}
|
||||||
|
|
||||||
static const struct sc_frame_sink_ops ops = {
|
static const struct sc_frame_sink_ops ops = {
|
||||||
.open = screen_frame_sink_open,
|
.open = screen_frame_sink_open,
|
||||||
.close = screen_frame_sink_close,
|
.close = screen_frame_sink_close,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue