Fixed NPE caused by controller in DirectInput mode