Unless cleanup is called from the same thread as init, the cleanup

doesn't happen properly and events are left of the ff device meaning we
run out of device space. Added a thread that init and cleanup are called
from via methods on the interface.

Then it became apparent that rumble would only work from the same thread
as the others too, so thats added in there.

Nastyness all round.
This commit is contained in:
endolf 2005-08-30 19:37:53 +00:00
parent ab247c91ad
commit daba6d24cc
12 changed files with 102 additions and 492 deletions

View file

@ -59,14 +59,12 @@
</target>
<target depends="init,compile" name="createJNIHeaders">
<javah>
<javah destdir="src/native">
<classpath>
<pathelement path="src/java"/>
<pathelement location="jinput.jar"/>
<pathelement location="../../coreAPI/bin/jinput.jar"/>
<pathelement location="bin/linux.jar"/>
</classpath>
<class name="net.java.games.input.LinuxDevice"/>
<class name="net.java.games.input.LinuxEnvironmentPlugin"/>
<class name="net.java.games.input.LinuxKeyboard"/>
<class name="net.java.games.input.JInputLibrary"/>
</javah>
</target>