MCPcopy Create free account
hub / github.com/MaaXYZ/MaaFramework / post_key_down

Method post_key_down

source/MaaFramework/Controller/ControllerAgent.cpp:143–148  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

141}
142
143MaaCtrlId ControllerAgent::post_key_down(int keycode)
144{
145 ClickKeyParam p { .keycode = { keycode } };
146 auto id = post({ .type = Action::Type::key_down, .param = std::move(p) });
147 return focus_id(id);
148}
149
150MaaCtrlId ControllerAgent::post_key_up(int keycode)
151{

Callers

nothing calls this directly

Calls 1

moveFunction · 0.85

Tested by

no test coverage detected