Fix some code from 7fca160

Should have been under an ifdef for xinput