mirror of
https://github.com/Genymobile/scrcpy.git
synced 2025-04-21 12:05:00 +00:00
relative-mouse-mode
This commit is contained in:
parent
0e66c22bb4
commit
9066461abc
1 changed files with 4 additions and 0 deletions
|
@ -485,6 +485,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,
|
||||
|
|
Loading…
Add table
Reference in a new issue