Just some minor code modernization

This commit is contained in:
Henrik Rydgård committed 2025-08-25 10:45:12 +02:00
1 parent 3e62157487
commit 18ccef1bd4
11 files changed
+31 -27

No files matched your search

+3 -3
View File
@@ -95,9 +95,9 @@ const std::unordered_map<std::string, uint32_t> &WebSocketInputButtonLookup() {
DebuggerSubscriber *WebSocketInputInit(DebuggerEventHandlerMap &map) {
auto p = new WebSocketInputState();
map["input.buttons.send"] = std::bind(&WebSocketInputState::ButtonsSend, p, std::placeholders::_1);
map["input.buttons.press"] = std::bind(&WebSocketInputState::ButtonsPress, p, std::placeholders::_1);
map["input.analog.send"] = std::bind(&WebSocketInputState::AnalogSend, p, std::placeholders::_1);
map["input.buttons.send"] = [p](DebuggerRequest &req) { p->ButtonsSend(req); };
map["input.buttons.press"] = [p](DebuggerRequest &req) { p->ButtonsPress(req); };
map["input.analog.send"] = [p](DebuggerRequest &req) { p->AnalogSend(req); };
return p;
}