Add option to always send scancodes

Default is enabled to match v0.19.1 behavior

Fixes #1233
This commit is contained in:
Cameron Gutman 2023-05-24 22:55:44 -05:00
commit 2f4cc9ace0
5 changed files with 51 additions and 1 deletions

View file

@ -441,6 +441,7 @@ namespace config {
true, // keyboard enabled
true, // mouse enabled
true, // controller enabled
true, // always send scancodes
};
sunshine_t sunshine {
@ -1039,6 +1040,8 @@ namespace config {
bool_f(vars, "keyboard", input.keyboard);
bool_f(vars, "controller", input.controller);
bool_f(vars, "always_send_scancodes", input.always_send_scancodes);
int port = sunshine.port;
int_f(vars, "port"s, port);
sunshine.port = (std::uint16_t) port;