Media keys working again

This commit is contained in:
2026-10-18 03:50:33 +02:00
parent 726a7ae92d
commit 798708b3e7
20 changed files with 590 additions and 112 deletions

View File

@@ -25,6 +25,11 @@ public:
// Presses and releases every step of the shortcut in order.
void play(const std::vector<gkeymapper::ShortcutStep>& steps);
// Presses and releases a single Linux key code. The media keys are replayed
// with this: the keyboard reports them on its own (see README), so the daemon
// passes them on unchanged instead of turning them into a mapping.
void tap(unsigned short code);
private:
void emit(unsigned short type, unsigned short code, int value);
void sync();