Add support for newer libinput

This is only an example of what I had to change in order to make it compile properly with my 0.2.0 version of libinput that came with Arch Linux. You should probably not accept this as it is because I have not even tried it out properly yet.