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

Method handle_key_up

source/MaaFramework/Controller/ControllerAgent.cpp:849–863  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

847}
848
849bool ControllerAgent::handle_key_up(const ClickKeyParam& param)
850{
851 if (!control_unit_) {
852 LogError << "control_unit_ is nullptr";
853 return false;
854 }
855
856 bool ret = !param.keycode.empty();
857
858 for (const auto& keycode : param.keycode) {
859 ret &= control_unit_->key_up(keycode);
860 }
861
862 return ret;
863}
864
865bool ControllerAgent::handle_scroll(const ScrollParam& param)
866{

Callers

nothing calls this directly

Calls 2

key_upMethod · 0.65
emptyMethod · 0.45

Tested by

no test coverage detected