Cameron Gutman
1cd588f25c
Don't set relative warp mode based on absolute/relative mouse mode
...
This breaks pointer capture on Wayland when we start in absolute mouse
mode (since warp is not supported on Wayland). It's also confusing to
users because it leads to different relative mouse acceleration curves
based on whether you start a stream in relative mode or not.
2024-04-27 17:13:02 -05:00
Cameron Gutman
87eba9bb89
Fix build on Qt 5.13 and earlier
2023-09-09 14:22:47 -05:00
FrogTheFrog
85d4037a89
Allow to specify gamepad GUIDs to be ignored when streaming
2023-09-03 16:24:05 -05:00
Cameron Gutman
f112edc3c3
Disable touch feedback when sending touch natively
2023-07-23 00:17:58 -05:00
Cameron Gutman
db2b120b68
Remove unused variable
2023-03-18 14:29:45 -05:00
Cameron Gutman
e1c4a488ed
Remove mouse throttling code
...
This should be managed inside moonlight-common-c instead.
2023-03-11 11:40:37 -06:00
Cameron Gutman
9c15cceee7
Don't batch mouse motion for Sunshine
2023-01-16 22:01:34 -06:00
Cameron Gutman
56f184393f
Allow the cursor lock toggle to work in full-screen mode
...
Fixes #793
2022-05-19 19:14:55 -05:00
Cameron Gutman
6972573a6e
Add pointer lock key combo
...
Fixes #737
2022-03-29 18:26:09 -05:00
Cameron Gutman
97a09e0571
Send UTF-8 clipboard text directly rather than emulating keystrokes
2021-12-03 11:32:58 +03:00
Cameron Gutman
c7121516c1
Remove workaround for window occlusion issue fixed in SDL 2.0.18
2021-11-29 23:13:50 +03:00
Cameron Gutman
666dc13c01
Use SDL's new support for keyboard grab on macOS
2021-08-15 14:54:26 -05:00
Cameron Gutman
8048938158
Fix Linux build
2021-06-12 16:12:46 -05:00
Cameron Gutman
3689c7f982
Don't enable input capture if the window can't be foregrounded
2021-06-12 13:59:13 -05:00
Cameron Gutman
b50e5ed7e6
Fix keyboard grab on X11
...
Fixes #584
2021-04-30 18:17:15 -05:00
Cameron Gutman
98672c8e44
Allow remote desktop mouse mode in embedded mode
...
It can be easier to control the mouse on the desktop that way
2021-03-13 16:58:58 -06:00
Cameron Gutman
d6b314f573
Add option to build for embedded environments
2021-03-13 15:20:58 -06:00
Cameron Gutman
b2aea9f8f0
Revert change to only fire special combos on key up
2021-02-28 15:06:46 -06:00
Cameron Gutman
87a7d2e45c
Add setting to only capture system keys in full-screen
2021-02-27 16:47:38 -06:00
Cameron Gutman
b27ca993aa
Add support for system key capture in windowed mode on macOS
2021-02-26 21:43:47 -06:00
Cameron Gutman
133cc5457d
Use SDL_CaptureMouse() on macOS and Linux too
2021-02-08 18:30:22 -06:00
Cameron Gutman
05e4c5b507
Move clipboard processing to a separate thread to avoid blocking the main thread during pastes
2021-02-07 17:18:35 -06:00
Cameron Gutman
b83c6f0c28
Add support for pasting clipboard text
2021-02-07 13:46:38 -06:00
Cameron Gutman
36dc0f3e3c
Use mouse capture for Win32 instead of our global mouse state hack
2021-02-07 12:38:57 -06:00
Cameron Gutman
75b19a60c1
Fix build on macOS and keyboard grab bugs
2021-02-06 11:29:18 -06:00
Cameron Gutman
9fc921f49f
Use SDL's keyboard grab support now that it's been upstreamed
2021-02-05 00:13:20 -06:00
Cameron Gutman
1cd66419d4
Remember desired cursor hide state
...
Fixes #511
2021-01-30 11:08:01 -06:00
Cameron Gutman
2eb4769bbc
Only trigger special key combos when all keys are up
2021-01-24 13:02:42 -06:00
Cameron Gutman
76b4922bbe
Add toggle for system key capture
2021-01-12 20:05:18 -06:00
Cameron Gutman
c331b180cb
Fix modifier keys being stuck down after key combos when capturing system keys on Windows
2021-01-12 18:40:00 -06:00
Cameron Gutman
30e3b02867
Start implementation of system key capture
2021-01-11 23:43:32 -06:00
Cameron Gutman
af0921c5b2
Set new hints present in SDL 2.0.15 development builds
2021-01-08 18:14:49 -06:00
Cameron Gutman
5096ff6496
Add options to invert scroll direction and swap gamepad buttons
...
Fixes #463
Fixes #467
2020-12-25 22:21:20 -06:00
Cameron Gutman
a11f623b17
Add option to mute audio on minimize and background gamepad input
...
Fixes #461
2020-12-25 15:32:11 -06:00
Cameron Gutman
201b59cd4c
Compilation fixes for Qt 6.0 Beta 3
2020-11-07 19:23:23 -06:00
Anton
89319dc7aa
Added option to swap left and right mouse buttons
...
Changed the use of SDL buttons to Moonlight buttons definitions
2020-09-05 08:32:00 +02:00
Cameron Gutman
eded86bc10
Allow game controllers to be ignored during streaming only
...
STREAM_GAMECONTROLLER_IGNORE_DEVICES and STREAM_GAMECONTROLLER_IGNORE_DEVICES_EXCEPT environment variables provide the same functionality as SDL_GAMECONTROLLER_IGNORE_DEVICES and SDL_GAMECONTROLLER_IGNORE_DEVICES_EXCEPT, with the difference being SDL_* variables take effect at all times (UI and streaming) while STREAM_* variables take place only while streaming.
Fixes #425
2020-08-22 12:02:26 -07:00
Cameron Gutman
ab5025efbf
Ignore mouse events outside the video region
2020-07-12 15:06:36 -07:00
Cameron Gutman
912e51d863
Synchronize the client and host cursor when starting absolute mode capture
2020-07-12 15:03:08 -07:00
Cameron Gutman
f00653964e
Batch absolute mouse motion like we do for relative motion
2020-05-31 13:34:50 -07:00
Cameron Gutman
0428bc8fe3
Generate synthetic mouse button up if the mouse has left the window and the button is raised
2020-05-07 19:26:02 -07:00
Cameron Gutman
51c4ecc879
Revert "Partially unrevert 05e82c24
for macOS which still needs it"
...
This reverts commit 080421f2fb
.
2020-05-06 21:41:57 -07:00
Cameron Gutman
080421f2fb
Partially unrevert 05e82c24
for macOS which still needs it
2020-05-06 21:18:23 -07:00
Cameron Gutman
8cc61ca8b8
Use SDL_HINT_MOUSE_FOCUS_CLICKTHROUGH to get click events on focus gain
2020-05-06 20:43:41 -07:00
Cameron Gutman
400754c5b3
Revert "Pass through focus-gain clicks to the host in absolute mouse mode"
...
This reverts commit 05e82c24f8
.
2020-05-06 20:04:07 -07:00
Cameron Gutman
05e82c24f8
Pass through focus-gain clicks to the host in absolute mouse mode
2020-05-06 18:58:43 -07:00
Cameron Gutman
2fdabe37aa
Raise the window before capturing in relative mode
2020-05-01 18:44:22 -07:00
Cameron Gutman
9bf52eb63a
Improve relative touch deadzone behavior
2020-04-30 21:04:51 -07:00
Cameron Gutman
0c9d72a9a1
Restore the option for relative touch mode
2020-04-30 20:55:15 -07:00
Cameron Gutman
c2c2bd2df6
Split input.cpp into smaller files
2020-04-30 20:22:43 -07:00