Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (495)
Games in Android Showcase (114)
games submitted by our members
Games in WIP (563)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  logitech trackman wheel is not recognised!!!  (Read 2444 times)
0 Members and 1 Guest are viewing this topic.
Offline paulb

Senior Newbie





« Posted 2009-10-22 17:34:28 »

Hi,
  I have a logitech trackman wheel and when I run the following code it doesnt detect it!  Although I do detect my mouse and keyboard.  I havent installed the logitech driver!  Do I need to?  The reason I havent yet is because Windows seems to recognise it when I plug the device in- and it works as a mouse.  Does anyone know why?

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
import net.java.games.input.*;

public class JInputController {
   public static void main(final String args[]) {
      final Controller[] ca = ControllerEnvironment.getDefaultEnvironment()
            .getControllers();
      Controller firstMouse = null;

      for (int i = 0; i < ca.length; i++) {
         System.out.println("Found input device: " + ca[i].getName());
      }
   }
}


Offline endolf

JGO Coder


Medals: 7


Current project release date: sometime in 3003


« Reply #1 - Posted 2009-10-23 10:14:23 »

Hi

If it shows up in windows as a mouse, it *might* show up in JInput as a mouse, probably with some generic name. If not, you will need to install the driver for it to show up as a directx device.

HTH

Endolf

Offline paulb

Senior Newbie





« Reply #2 - Posted 2009-10-27 10:40:15 »

Hi

If it shows up in windows as a mouse, it *might* show up in JInput as a mouse, probably with some generic name. If not, you will need to install the driver for it to show up as a directx device.

HTH

Endolf

Thanks endolf for the reply.  Just installed the logitech software - I presume this includes the driver?.

When I run my test application it still is not recognising the device!!!!!  Could there be an issue that I already have a USB mouse plugged into my PC and JInput cant differentiate between the mouse and the trackman?

Can someone please help me out - I am stuck?
   Paul
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline endolf

JGO Coder


Medals: 7


Current project release date: sometime in 3003


« Reply #3 - Posted 2009-10-27 18:23:40 »

Hi

JInput can detect multiple mice, if you have 3 plugged in, it will happily deal with that. Assuming they are exposed using the standard windows APIs. I have no idea what logitec have done here. I have 2 mice on my system, one is a wireless logitec thing, and one is an external microsoft mouse. Both show up. It's possible that the logitec trackman does not show as a mouse, and does not have a directx driver, this is the only way that JInput would not show it, but I have no idea if this is the case and it would seem very odd.

Are you sure it's is not present?, it might just have a name you do not recognise?

HTH

Endolf

Offline paulb

Senior Newbie





« Reply #4 - Posted 2009-11-09 14:07:42 »

I am sure it is not present.  I have tested with various combinations - the mouse and keyboard disconnected.  With still no joy  Huh

I have tried a different trackerball(USB) and I cant detect that!  I dont understand  Undecided

Could it be because it is USB?
Offline endolf

JGO Coder


Medals: 7


Current project release date: sometime in 3003


« Reply #5 - Posted 2009-11-09 18:07:59 »

USB devices are the only ones that we still support.

I have no idea why it's not detecting them. I would expect it too, I have a theory, but no way to test it. I will take a look at some point this week hopefully.

Endolf

Offline paulb

Senior Newbie





« Reply #6 - Posted 2009-11-09 18:11:34 »

Cheers endolf,
  I would appreciate it.  Grin

I have sent a customer support email to logitech to ask if they could assist.
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

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

The first screenshot will be displayed as a thumbnail.

Dwinin (23 views)
2014-09-12 09:08:26

Norakomi (56 views)
2014-09-10 13:57:51

TehJavaDev (69 views)
2014-09-10 06:39:09

Tekkerue (34 views)
2014-09-09 02:24:56

mitcheeb (56 views)
2014-09-08 06:06:29

BurntPizza (40 views)
2014-09-07 01:13:42

Longarmx (25 views)
2014-09-07 01:12:14

Longarmx (31 views)
2014-09-07 01:11:22

Longarmx (31 views)
2014-09-07 01:10:19

mitcheeb (39 views)
2014-09-04 23:08:59
List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
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!