mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
Just some minor code modernization
This commit is contained in:
1 parent
3e62157487
commit
18ccef1bd4
11 files changed
+31
-27
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user