Libinput patch on Google drive:https://drive.google.com/file/d/0B12ezKEQAzmLWDdHRjZqWGdybGM/edit?usp=sharing
Hope you know what to do with patches. This one is against SDK 1.05. I guess there is little adaptation needed for the SDK 1.06 although I didn't tried.
In case you don't know what is it I also shared pre-built libinput.so (SDK 1.05):https://drive.google.com/file/d/0B12ezKEQAzmLeTBtVGdzeFN2NmM/edit?usp=sharing
You will need to replace it on the running system:
1) Open terminal window
2) Remount /system read-write as root:
$ su -
# mount /system -o remount,rw
3) Move aside old libinput.so:
mv libinput.so libinput.so.old
3) Copy new libinput.so in place of old one
cp /sdcard/libinput.so . [I assume new library was in /sdcard folder.]
4) Change file owner and permissions to look similar to old file using chown and chmod.
And one more thing, in order to make Unified receiver work you have to rebuild Kernel with CONFIG_HIDRAW=y, CONFIG_HID_LOGITECH_DJ=y. Let me know if prebuilt kernel needed.
These steps are enough to make it work. The last thing, if you want to make all the 'extra' buttons to work as expected you need to remap them. Read this to get the idea:http://droid-den.com/guide-how-to-remap-keys-on-a-hardware-keyboard/#.UwE34oVuhD0