Support XINPUT ABI 24 (remove select mask from block/wakeup handlers).
The evdev driver wasn't using the select mask arguments, so this change just involves adjusting the argument lists.
Support XINPUT ABI version 23 (threaded input).
Use input_lock/input_unlock calls instead of SIGIO functions
Report errors when attempting to write keyboard controls.
This is mostly to eliminate a compiler warning.
From ChangeLog: