mirror of
https://github.com/LizardByte/Sunshine.git
synced 2026-12-06 03:57:38 +00:00
fix(input): restore cross-platform refactor compilation
This commit is contained in:
2 files changed
+4
-5
No files matched your search
+3
-3
@@ -2437,7 +2437,7 @@ namespace input {
|
||||
}
|
||||
|
||||
if (!inputs.empty()) {
|
||||
dispatch_input_task(host, [inputs = std::move(inputs), &host]() {
|
||||
dispatch_input_task(host, [inputs = std::move(inputs)]() {
|
||||
destroy_gamepads(inputs);
|
||||
});
|
||||
}
|
||||
@@ -2458,7 +2458,7 @@ namespace input {
|
||||
state.inputs.erase(iter);
|
||||
}
|
||||
|
||||
dispatch_input_task(host, [input = std::move(input), &host]() {
|
||||
dispatch_input_task(host, [input = std::move(input)]() {
|
||||
destroy_gamepads(input);
|
||||
});
|
||||
}
|
||||
@@ -2572,7 +2572,7 @@ namespace input {
|
||||
}
|
||||
|
||||
if (resumed) {
|
||||
dispatch_input_task(host, [input, mail = std::move(mail), &host]() {
|
||||
dispatch_input_task(host, [input, mail = std::move(mail)]() {
|
||||
rebind_input(input, mail);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -26,7 +26,6 @@
|
||||
#include "src/config.h"
|
||||
#include "src/logging.h"
|
||||
#include "src/platform/common.h"
|
||||
#include "src/scheduler.h"
|
||||
#include "src/thread_pool.h"
|
||||
#include "src/video.h"
|
||||
#include "vaapi.h"
|
||||
@@ -718,9 +717,9 @@ namespace platf {
|
||||
* @param scheduler Host scheduler for periodic display-attribute refreshes.
|
||||
*/
|
||||
shm_attr_t(const config::settings_t &settings, mem_type_e mem_type, std::shared_ptr<const xcb::shm_api_t> shm_api, thread_pool_util::ThreadPool &scheduler):
|
||||
scheduler(scheduler),
|
||||
x11_attr_t(settings, mem_type),
|
||||
shm_api {std::move(shm_api)},
|
||||
scheduler(scheduler),
|
||||
shm_xdisplay {x11::OpenDisplay(nullptr)} {
|
||||
refresh_task_id = scheduler.pushDelayed(&shm_attr_t::delayed_refresh, 2s, this).task_id;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user