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

Method key_down

source/MaaCustomControlUnit/Manager/CustomControlUnitMgr.cpp:190–199  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

188}
189
190bool CustomControlUnitMgr::key_down(int key)
191{
192 if (!controller_ || !controller_->key_down) {
193 LogError << "controller_ or controller_->key_down is nullptr";
194 return false;
195 }
196
197 LogFunc << VAR_VOIDP(controller_) << VAR_VOIDP(controller_->key_down) << VAR(key);
198 return controller_->key_down(key, controller_arg_);
199}
200
201bool CustomControlUnitMgr::key_up(int key)
202{

Callers

nothing calls this directly

Calls 1

key_downMethod · 0.65

Tested by

no test coverage detected