Commit 5560126a authored by Jeff Zohrab's avatar Jeff Zohrab

Recognize other Logitech keyboard.

Device name 'Eee PC WMI hotkeys' has EV=100013.  Tweaked regex to handle.
parent 892f04f1
......@@ -332,7 +332,7 @@ void determine_input_device()
// extract input number from /proc/bus/input/devices (I don't know how to do it better. If you have an idea, please let me know.)
// The compiler automatically concatenates these adjacent strings to a single string.
const char* cmd = EXE_GREP " -E 'Handlers|EV=' /proc/bus/input/devices | "
EXE_GREP " -B1 'EV=12001[3Ff]' | "
EXE_GREP " -B1 'EV=1[02]001[3Ff]' | "
EXE_GREP " -Eo 'event[0-9]+' ";
std::stringstream output(execute(cmd));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment