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

Method key_up

source/MaaGamepadControlUnit/Manager/GamepadControlUnitMgr.cpp:304–312  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

302}
303
304bool GamepadControlUnitMgr::key_up(int key)
305{
306 if (!gamepad_input_ || !gamepad_input_->connected()) {
307 LogError << "Gamepad not connected";
308 return false;
309 }
310
311 return gamepad_input_->release_button(key);
312}
313
314bool GamepadControlUnitMgr::inactive()
315{

Callers

nothing calls this directly

Calls 2

connectedMethod · 0.45
release_buttonMethod · 0.45

Tested by

no test coverage detected