Commit graph

63 commits

Author SHA1 Message Date
endolf 0015c724b3 Rather than crashing, just disable the plugin if we an't load the dll 2007-09-23 02:01:26 +00:00
endolf 13e1269023 Fix a potential Array index out of bounds exception. 2007-08-12 22:38:49 +00:00
endolf a2f62499b9 Make joysticks fire events 2007-08-12 22:10:37 +00:00
endolf c6a4aeaf1e Complete - task 36: Linux plugin not reporting normalised values
https://jinput.dev.java.net/issues/show_bug.cgi?id=36
2007-08-12 21:59:25 +00:00
endolf ea90a2d3b4 Make the joystick plugin on linux respect POV Hats 2007-08-12 20:09:14 +00:00
endolf ae8b23e4ba Remove stray debug 2007-08-12 16:02:23 +00:00
endolf 8699a0c8b1 Issue number: 35
Read the axis and button maps from the joystick nodes.
2007-08-12 15:47:51 +00:00
endolf fd2a1b073d Make the API docs and the code match for the Mouse.get<button> methods. Add the methods that we actually wanted to be there. 2007-06-28 20:37:24 +00:00
endolf 083eee58ee Implement the isSupported method and make plugins work again. There was an issue where accessing the static methods in DefaultControllerEnvironment and ControllerEnvironment would cause ploblems when the plugins were loaded using the PluginLoader class loader. 2007-06-10 15:03:27 +00:00
elias 7716494aee Linux: Added more paths to the jni header search path 2007-04-19 11:40:03 +00:00
elias 7bf9a5d428 Linux: Bounds check fixes (again) 2006-12-26 09:18:46 +00:00
elias 02196352eb Linux ~: More bounds checks 2006-12-25 09:31:34 +00:00
elias 9d211951c1 Linux: Fix an IndexOutOfBoundsException for unknown controller types 2006-12-23 07:51:58 +00:00
elias f201cc526b Linux: Changed uname -i to uname -m to improve 64 bit detection in build scripts 2006-09-08 10:06:51 +00:00
elias b1892fe307 Linux: Ignore rumblers when device is read only 2006-08-11 08:44:12 +00:00
elias f0737680fa Made the core classes and the linux plugin applet compatible. Removed dead code in DefaultControllerEnvironment 2006-07-14 08:31:27 +00:00
elias c97630f17d Linux: build fixes for 64 bit 2006-07-11 21:07:38 +00:00
elias 06ecaad638 Changed a System.out.println to use logging 2006-07-11 21:04:54 +00:00
elias 6eb27144d9 Linux: Implemented support for libjinput-linux64.so 64 bit library 2006-07-11 21:02:46 +00:00
elias 4306f119c2 added DefaultControllerEnvironment.loadLibrary convenience method for plugins. It will also respect the new net.java.games.input.librarypath property for locating natives (useful for applets). Removed the mac os x jinput-osx-legacy library loading, as it is not necessary anymore with the combined 10.3/10.4 library 2006-07-03 11:59:10 +00:00
endolf 559c008a02 Make version 2 the main jinput version 2006-04-29 22:29:27 +00:00
endolf 4c91a4eb44 Trying to sort out some of the crashes and failed exits 2006-01-12 22:16:10 +00:00
endolf 552fdad56d Fixed a sigsegv, once we've found a match for an event device and
joystick, don't look at that stick again, especially having nulled the
pointer.
2005-12-04 22:14:35 +00:00
endolf 819e59f33c Don't poll if we are shutting down 2005-11-11 20:05:06 +00:00
endolf db744e1d41 Let me just say ....
Ooops

was forgetting to increment a counter
2005-11-11 19:22:55 +00:00
endolf dc39383a67 Handle cases where there are no event devices, only js ones. 2005-11-07 07:46:34 +00:00
endolf 9a920ade6d Fixes for js devices that are read only 2005-11-03 22:00:11 +00:00
endolf f95cb1ce41 3 Changes
When there are no device files found, jinput won't try to read the 0th
one.

When no js* devices are found in /dev/input it will look in /dev

Try to free some of the memory created in the init process
2005-10-30 21:56:14 +00:00
endolf 95cf7ab8e7 It helps if you add the files the new changes depend on.
Ooops

(force feedback changes I committed yesterday that is)
2005-08-31 06:43:02 +00:00
endolf b6f7e35321 It appears as though linux can't cope with scaling the effect, it's on
or off. So i'm having to play with the strong/weak rumble settings.
2005-08-30 19:54:25 +00:00
endolf daba6d24cc 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.
2005-08-30 19:37:53 +00:00
endolf ab247c91ad Updated build file to build 1.4 byte code 2005-08-28 21:23:54 +00:00
endolf 04e3538e83 Added cleanup stuff for rumblers, it doesn't fix the code, but is nice 2005-07-16 15:09:04 +00:00
endolf d4c72ba15c Couple if inux rumbler differences, including including the added file 2005-07-16 13:07:45 +00:00
endolf df432c29ae Linux rumbler support
IT DOES NOT WORK YET though.

I'm in contact with the kernel module developers as I think it's a kernel bug
2005-07-03 20:05:34 +00:00
endolf d222fad271 Updated the name of the linux native library 2005-06-19 15:33:12 +00:00
endolf c2bbf1d876 Extra debug info 2005-06-19 15:32:44 +00:00
endolf b5bea30cc2 For some reason, my ubunto boxes with jdk 1.5.0_02 all seem to have
java.home set to the jre dir, even though a 'which java' reveals it's
using the jdk one, not the jre one. This causes the include dir not to
be found and causes the build to fail. Made it so that the build file
looks for includes relative to the jre dir and the jdk dir, so all
systems should work (yeah, right)
2005-06-14 11:19:55 +00:00
endolf ab7bba58d6 Will try to open the device for read/write first, if that fails, trys
read only and displays a message about not being enabled for force
feedback
2005-05-08 09:58:31 +00:00
endolf fc587842d0 Handle missing absolute axis ID's 2005-05-05 08:07:51 +00:00
endolf e48688ce73 Regenerated from 2.6.10 headers 2005-05-04 18:16:23 +00:00
endolf fa0b606105 Event devices now opened read only 2005-05-04 18:15:08 +00:00
jeffpk 4be7c6e38b Updated EventDevice.cpp to handle EV_SYN properly 2005-05-01 23:25:38 +00:00
jeffpk 3a67a298a8 Updated linux plugin to build under Linux 2.6.5-7.151
Note, these are hacky fixes that may break it under earlier versions of Linux. Sorry.
2005-04-28 05:19:22 +00:00
endolf fa132b2126 Changes for Axis.Identifier changes. This includes renaming Axis to Component, and creating the Identifier objects for Key Axis and Button. 2004-08-29 21:23:06 +00:00
endolf 9741fccdfa Updates so that for now keyboards are just created as normal devices, this means the Axis.Identifiers are not the standard ones, but the correct things are now show and no excpetions are seen on the Logitech Elite keyboard (or any that has axis as well) 2004-07-07 23:16:03 +00:00
endolf 5fb795d2fd If a joystick hat isn't configured properly, or if it's digital, then the axis data is not -32676, 0 or 32767 it is -1, 0 or 1. Updated the hat object to reflect this. 2004-07-07 23:09:41 +00:00
endolf cd663ae444 Possible fix for sigfault on linux, need to test more 2004-06-21 21:44:16 +00:00
endolf 307a1d5ff3 Updated the type guess code so that anything that doesn't have a characteristic of a particular type, wont get guessed as that type, it was possible for devices with no characteristics of any of the known types to be classed as a stick, now it should not. 2004-04-21 16:19:42 +00:00
endolf b0458c08d1 Fix for issue 27
Controller types not set up in linux
2004-04-21 11:00:05 +00:00