Add option to disable native pen/touch support

This commit is contained in:
Cameron Gutman
2023-12-31 19:03:07 -06:00
parent 729922d2c0
commit 3ca75bee19
5 changed files with 38 additions and 1 deletions

View File

@@ -428,6 +428,7 @@ namespace config {
true, // controller enabled
true, // always send scancodes
true, // high resolution scrolling
true, // native pen/touch support
};
sunshine_t sunshine {
@@ -1061,6 +1062,8 @@ namespace config {
bool_f(vars, "always_send_scancodes", input.always_send_scancodes);
bool_f(vars, "high_resolution_scrolling", input.high_resolution_scrolling);
bool_f(vars, "native_pen_touch", input.native_pen_touch);
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;