News:

Precision Simulator update 10.173 (24 February 2024) is now available.
Navburo update 13 (23 November 2022) is now available.
NG FMC and More is released.

Main Menu

No USB devices detected ? / See Java error.

Started by EHAM747, Wed, 16 Aug 2017 09:00

EHAM747

Hi,

Since I have a new Corsair mouse and keyboard, PSX will not regocnize any USB device.
The log gives this error:

[Aerowinx Precision Simulator - Exceptions]

java.lang.NullPointerException
   at net.java.games.input.RawMouse$Button.<init>(RawMouse.java:197)
   at net.java.games.input.RawMouseInfo.createControllerFromDevice(RawMouseInfo.java:83)
   at net.java.games.input.RawInputEnvironmentPlugin.createControllersFromDevices(RawInputEnvironmentPlugin.java:160)
   at net.java.games.input.RawInputEnvironmentPlugin.enumControllers(RawInputEnvironmentPlugin.java:176)
   at net.java.games.input.RawInputEnvironmentPlugin.<init>(RawInputEnvironmentPlugin.java:123)
   at net.java.games.input.DirectAndRawInputEnvironmentPlugin.<init>(DirectAndRawInputEnvironmentPlugin.java:46)
   at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
   at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
   at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
   at java.lang.reflect.Constructor.newInstance(Unknown Source)
   at java.lang.Class.newInstance(Unknown Source)
   at net.java.games.input.DefaultControllerEnvironment.getControllers(DefaultControllerEnvironment.java:157)
   at Usb.init(Usb.java:1217)
   at Core.startAll(Core.java:643)
   at Aerowinx.main(Aerowinx.java:42)

Any ideas? I'm running Windows 10 and latest java version.


Greetings,
Alex Aartsen

CarlBB

Hi,
All I can do is confirm this behavior having a Corsair mouse myself (it was my son who bought one for me) so the easy fix for me was.... to swap back to a basic one for PSX. Others might add something of more value.
Thanks
Carl

http://aerowinx.com/board/index.php?topic=3353.msg33907#msg33907

EHAM747

Hi all,

I've tried another mouse. Didn't help either.
The mouse *is* regeognised, but in the instructor page, no USB devices are found!

Does this means that there is a device that causes a problem? Any ideas?

Greetings,
Alex Aartsen

Hardy Heinlin

Hi Alex,

I don't know why your new Corsair system provides incomplete data to the USB interface, but you may check this: Open the file Aerowinx/Preferences/Default.pref with a text editor and change the line ...

UsbUnknownIncl=0

... to ...

UsbUnknownIncl=1


... or vice versa.

When the value is set to 1, the USB interface includes unknown devices (devices without a name). Your game keyboard and mouse may then appear on the USB page. If it was already set to 1, the USB interface may have problems with some non-standard devices, and resetting it to 0 may remove the Corsair system from the USB interface and clear the problem.

If you open Aerowinx/Developers/USB-Detect.txt, you can see a list of all devices which the USB interface has detected and accepted during the last PSX startup.


Regards,

|-|ardy

EHAM747

Hi Hardy,

ok I've set UsbUnknownIncl=0

Here is the USB Detect.txt:
USB detection test:

It comes back empty

Errors.txt:
[Aerowinx Precision Simulator - Exceptions]

java.lang.NullPointerException
   at net.java.games.input.RawMouse$Button.<init>(RawMouse.java:197)
   at net.java.games.input.RawMouseInfo.createControllerFromDevice(RawMouseInfo.java:83)
   at net.java.games.input.RawInputEnvironmentPlugin.createControllersFromDevices(RawInputEnvironmentPlugin.java:160)
   at net.java.games.input.RawInputEnvironmentPlugin.enumControllers(RawInputEnvironmentPlugin.java:176)
   at net.java.games.input.RawInputEnvironmentPlugin.<init>(RawInputEnvironmentPlugin.java:123)
   at net.java.games.input.DirectAndRawInputEnvironmentPlugin.<init>(DirectAndRawInputEnvironmentPlugin.java:46)
   at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
   at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
   at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
   at java.lang.reflect.Constructor.newInstance(Unknown Source)
   at java.lang.Class.newInstance(Unknown Source)
   at net.java.games.input.DefaultControllerEnvironment.getControllers(DefaultControllerEnvironment.java:157)
   at Usb.init(Usb.java:1217)
   at Core.startAll(Core.java:643)
   at Aerowinx.main(Aerowinx.java:42)

So no devioces at all. Quite strange...

Greetings,
Alex Aartsen

Hardy Heinlin

Hi Alex,

you could set this line to zero:

UsbActive=0

But this will also deactivate your joysticks etc. in PSX. Are you using any?


Regards,

|-|ardy

EHAM747

Sorry for the late response.
Yes I use warthog hotas.
Greetings,
Alex