Fix return values in linux joystick API
Return events only for requested peripheral