Emulate back/select gamepad button

This commit is contained in:
loki
2019-12-22 23:34:12 +01:00
parent 0deb5433d1
commit 29edc88294
12 changed files with 524 additions and 41 deletions

View File

@@ -43,6 +43,10 @@ nvhttp_t nvhttp {
"devices.json" // file_devices
};
input_t input {
2s
};
bool whitespace(char ch) {
return ch == ' ' || ch == '\t';
}
@@ -143,6 +147,13 @@ void parse_file(const char *file) {
}
string_f(vars, "file_apps", stream.file_apps);
int_f(vars, "fec_percentage", stream.fec_percentage);
to = std::numeric_limits<int>::min();
int_f(vars, "back_button_timeout", to);
if(to > std::numeric_limits<int>::min()) {
input.back_button_timeout = std::chrono::milliseconds {to };
}
}