galaktor / gostwriter

A virtual keyboard for linux, which makes use of /dev/uinput to inject key events.
GNU General Public License v3.0
24 stars 7 forks source link

update get_keycodes.sh for Linux >= 4.4 #5

Closed idupree closed 8 years ago

idupree commented 8 years ago

In linux >= 4.4, the KEY_* definitions are no longer in input.h but in input-event-codes.h.

idupree commented 8 years ago

Note that the generated codes.go from new Linux (not committed here) has a lot of whitespace changes, but checking git diff -w it is just adding a few codes. It is fine that codes.go still #includes linux/input.h, because linux/input.h #includes input-event-codes.h. We only need to change get_keycodes.sh because it doesn't know how to follow C-preprocessor #includes.

galaktor commented 8 years ago

merged as part of https://github.com/galaktor/gostwriter/pull/7