jinput without any frames?

Hi,

I was playing with the ControllerReadTest.java and those examples found from CVS… I noticed that the examples did not work at all (devices were found ok, but they only returned zero values), but the ControllerReadTest was working ok.

So I tried to add a creation of JFrame to the example code, and I started to get real values instead of zeros after that!

So, the question is: is this a feature of jinput or libs or underlying OS (in this case WinXP)? I was planning to use jinput in a linux server which is not running X-windows at all…

Sami

Which distribution are you using?, ubuntu 8.10 broke a large chunk of functionality by using evdev inside x windows, you won’t get that problem on the server with no X.

HTH

Endolf

I’m coding with Windows XP (where I faced this problem)… The SW will be run in a older Ubuntu (6.x something) server without X windows, but I haven’t tested the jinput in that environment yet. I’ll do that next…

Sami

Finally I had some time to try the jinput on my ubuntu linux server… but I failed :frowning:

It seems that the latest jinput distribution requires glibc 2.4, but my old ubuntu (dapper) has only 2.3… and glibc 2.4 is not available for dapper, only newer ubuntu distros.

What options do I have?
a) upgrade ubuntu? I’d not like to do that just for jinput…
b) compile linux natives from sources? Do they even compile against glibc 2.3? Any guides somewhere?
c) any other?

Sami

Hi

They should compile fine, just get the source and run ant dist.

HTH

Endolf