Recognize other Logitech keyboard.

Device name 'Eee PC WMI hotkeys' has EV=100013.  Tweaked regex to handle.
This commit is contained in:
Jeff Zohrab 2016-02-06 13:57:06 -05:00
parent 892f04f1d0
commit 5560126a74
1 changed files with 1 additions and 1 deletions

View File

@ -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));