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

Method handle_key_down

source/MaaFramework/Controller/ControllerAgent.cpp:833–847  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

831}
832
833bool ControllerAgent::handle_key_down(const ClickKeyParam& param)
834{
835 if (!control_unit_) {
836 LogError << "control_unit_ is nullptr";
837 return false;
838 }
839
840 bool ret = !param.keycode.empty();
841
842 for (const auto& keycode : param.keycode) {
843 ret &= control_unit_->key_down(keycode);
844 }
845
846 return ret;
847}
848
849bool ControllerAgent::handle_key_up(const ClickKeyParam& param)
850{

Callers

nothing calls this directly

Calls 2

key_downMethod · 0.65
emptyMethod · 0.45

Tested by

no test coverage detected