Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (687)
Games in Android Showcase (198)
games submitted by our members
Games in WIP (759)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
   Home   Help   Search   Login   Register   
  Show Posts
Pages: [1]
1  Java Game APIs & Engines / JInput / Re: more than one Mouse on: 2011-02-17 23:55:02

Looks good, I hope to add this over the weekend (I'm out thursday and fridays).

Thanks for the update Smiley


Hi I dont suppose you know if this fix has been released? any chance of a url to a release with this version in it. getting hold of JInput releases isnt very obvious Sad


2  Java Game APIs & Engines / JInput / Re: more than one Mouse on: 2010-11-19 00:14:27

I rebuilt jinput with the change and tested it and it works fine.
when I posted the original code I forgot jinput is built for 1.4, so no templates and no annotations, so for completness the code change is.

      File[] files = dir.listFiles(filter);
      Arrays.sort(files, new Comparator(){
          public int compare(Object f1, Object f2)
              return ((File)f1).getName().compareTo(((File)f2).getName());
          } });

and if anybody needs to fix the order of devices on a linux platform ie. writting rules this was a usefull link
3  Java Game APIs & Engines / JInput / Re: more than one Mouse on: 2010-11-18 00:02:00
given that listFiles doesnt guarantee order, I assume this is due to LinuxEnvironmentPlugin listFilePrivileged doing


I dont surpose somebody who knows what they are doing could update the code to apply an alpha sort on it

File[] files = dir.listFiles(filter);
Arrays.sort(files, new Comparator<File>(){
    public int compare(File f1, File f2)
        return f1.getName().compareTo(f2.getName());
    } });
return files;

4  Java Game APIs & Engines / JInput / Re: more than one Mouse on: 2010-11-17 22:53:20
I have exactly the same problem on a redhat platform. two devices same make and model (2 usb track balls).

I can not tell them apart at the JInput level as they both have the same Controller name, and each time you boot the machine its 50:50 the order Jinput returns them in the array of controllers.

using rules to force the device names in /dev/input I can force the names to be in the same order (based on the ID of the device) however Jinput doesnt seem to base the return of the controllers on the device name.

anybody know what it bases the order on, and can I get it consistant?

Pages: [1]
roseslayer (615 views)
2016-08-06 11:43:29

roseslayer (568 views)
2016-08-06 09:43:11

xTheGamerCodes (641 views)
2016-08-04 15:40:59

xTheGamerCodes (634 views)
2016-08-04 15:40:24

orrenravid (981 views)
2016-07-16 03:57:23

theagentd (1060 views)
2016-07-11 14:28:54

Hydroque (1172 views)
2016-07-06 05:56:57

Hydroque (1093 views)
2016-07-03 08:52:54

GrandCastle (908 views)
2016-07-01 09:13:47

GrandCastle (653 views)
2016-07-01 09:09:45
Rendering resources
by Roquen
2016-08-08 05:55:21

Rendering resources
by Roquen
2016-08-08 05:52:42

Rendering resources
by Roquen
2016-08-08 05:50:38

Rendering resources
by Roquen
2016-08-08 05:49:53

Rendering resources
by Roquen
2016-08-08 05:32:39

Making a Dynamic Plugin System
by Hydroque
2016-06-25 00:13:25

Java Data structures
by BinaryMonkL
2016-06-13 21:22:09

Java Data structures
by BinaryMonkL
2016-06-13 21:20:42 is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!