Fixed crash when xinput is not present.