Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (477)
Games in Android Showcase (107)
games submitted by our members
Games in WIP (535)
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-18 00:55:02
Hi

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

Thanks for the update Smiley

Endolf

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

Cheers

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

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 http://reactivated.net/writing_udev_rules.html
3  Java Game APIs & Engines / JInput / Re: more than one Mouse on: 2010-11-18 01:02:00
given that listFiles doesnt guarantee order, I assume this is due to LinuxEnvironmentPlugin listFilePrivileged doing


dir.listFiles(filter);


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 23: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]
 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

Riven (7 views)
2014-07-29 12:53:52

Dwinin (7 views)
2014-07-29 10:59:34

E.R. Fleming (23 views)
2014-07-29 03:07:13

E.R. Fleming (9 views)
2014-07-29 03:06:25

pw (39 views)
2014-07-24 01:59:36

Riven (39 views)
2014-07-23 21:16:32

Riven (26 views)
2014-07-23 21:07:15

Riven (28 views)
2014-07-23 20:56:16

ctomni231 (59 views)
2014-07-18 06:55:21

Zero Volt (51 views)
2014-07-17 23:47:54
HotSpot Options
by dleskov
2014-07-08 03:59:08

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:58:24

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:47:22

How do I start Java Game Development?
by ra4king
2014-05-17 11:13:37

HotSpot Options
by Roquen
2014-05-15 09:59:54

HotSpot Options
by Roquen
2014-05-06 15:03:10

Escape Analysis
by Roquen
2014-04-29 22:16:43

Experimental Toys
by Roquen
2014-04-28 13:24:22
java-gaming.org 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‑gaming.org
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!