mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-10-12 02:18:12 +00:00
[client] spice: allow volume control keys to be sent to the guest
These are implemented as ScrollLock+Up/Down for volume up and down, and ScrollLock+M to toggle audio mute. These should prove useful especially when Looking Glass now supports streaming audio, and the volume is defined in the guest and set on the output stream.
This commit is contained in:
@@ -24,6 +24,10 @@
|
||||
#include <linux/input.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#define PS2_MUTE 0xE020
|
||||
#define PS2_VOLUME_UP 0xE030
|
||||
#define PS2_VOLUME_DOWN 0xE02E
|
||||
|
||||
extern const uint32_t linux_to_ps2[KEY_MAX];
|
||||
extern const char * linux_to_str[KEY_MAX];
|
||||
extern const char * linux_to_display[KEY_MAX];
|
||||
|
Reference in New Issue
Block a user