Add option to disable high resolution scroll events

This commit is contained in:
Cameron Gutman 2023-12-31 19:02:36 -06:00
commit 729922d2c0
5 changed files with 82 additions and 7 deletions

View file

@ -427,6 +427,7 @@ namespace config {
true, // mouse enabled
true, // controller enabled
true, // always send scancodes
true, // high resolution scrolling
};
sunshine_t sunshine {
@ -1059,6 +1060,7 @@ namespace config {
bool_f(vars, "always_send_scancodes", input.always_send_scancodes);
bool_f(vars, "high_resolution_scrolling", input.high_resolution_scrolling);
int port = sunshine.port;
int_between_f(vars, "port"s, port, { 1024 + nvhttp::PORT_HTTPS, 65535 - rtsp_stream::RTSP_SETUP_PORT });
sunshine.port = (std::uint16_t) port;