fix(input): restore cross-platform refactor compilation

This commit is contained in:
ReenigneArcher committed 2026-10-11 15:38:24 -04:00
1 parent ed10580504
commit 06c8b24a31
2 files changed
+4 -5

No files matched your search

+3 -3
View File
@@ -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);
});
}
+1 -2
View File
@@ -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;
}