MCPcopy Create free account
hub / github.com/LemonOSProject/LemonOS / KeyUpdate

Method KeyUpdate

System/LemonWM/wm.cpp:458–469  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

456}
457
458void WMInstance::KeyUpdate(int key, bool pressed){
459 if(shellConnected && key == KEY_GUI && pressed){
460 Lemon::Shell::ToggleMenu(shellClient);
461 } else if(active){
462 Lemon::LemonEvent ev;
463
464 ev.event = pressed ? Lemon::EventKeyPressed : Lemon::EventKeyReleased;
465 ev.key = key;
466
467 PostEvent(ev, active);
468 }
469}
470
471void WMInstance::Update(){
472 Poll(); // Poll for commands

Callers 1

PollMethod · 0.80

Calls 1

ToggleMenuFunction · 0.85

Tested by

no test coverage detected