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   
Pages: [1]
  ignore  |  Print  
  device naming problem  (Read 2071 times)
0 Members and 1 Guest are viewing this topic.
Offline TheBohemian

Junior Member




Java will rule them all!


« Posted 2003-09-22 23:28:29 »

One thing I wonder about are the strange names JInput gives my input devices under WinXP/German:

The mouse is identfied as: Maus Maus (means: mouse mouse)
(The mouse's subdevices sound even stranger but I have read that the subdevice thing will be obsolete one time, so I do not complain.)

The keyboard looks like this: "Tastatur (Tastatur)" (means Keyboard (Keyboard)). Why in brackets this time?

Very strange:
"Microsoft SideWinder Game Pad Pro Microsoft SideWinder Game Pad Pro"

Since nobody complained on this topic so far I think this may be a localization problem. Anyone out there who can comment this?

cya

TheBohemian

---------------------------------------
my favorite OS: http://jnode.sf.net
Java 1.5 -> 1.4 converter: http://retroweaver.sf.net
Offline swpalmer

JGO Coder




Where's the Kaboom?


« Reply #1 - Posted 2003-09-23 01:57:02 »

As I mentioned in another thread my iTouch keyboard does the same thing - weird.
On my powerbook running OS X 10.2.8 the main keyboard and trackpad just show as "Generic Keyboard" and "Generic Mouse"

I don't have the iTouch here to try on OS X at the moment.

Offline JuddMan

Senior Member


Medals: 1


Your Ad Here


« Reply #2 - Posted 2003-09-23 19:16:30 »

under xp pro US english version, it shows as
Mouse Mouse
Keyboard (Keyboard)
Adaptoid Adaptoid
4 axis 16 button joystick 4 axis 16 button joystick

quite a mouthfull.

though DXDiag shows them all with just the name once, yet if the same thing running on a mac displays the device names correctly it must be the way directinput reports it.
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline TheBohemian

Junior Member




Java will rule them all!


« Reply #3 - Posted 2003-09-23 20:56:31 »

1  
super(productName + " " + instanceName);


I don't think this is DInputs fault this small fragment resides in DirectInputDevice.java and it obviously connects product and instance name. Maybe someone thought instanceName would be something meaningful on Win32 when more than one controller of the same kind is installed. Well, this is really the problem. DInput doesn't do this.

More interesting in DirectInputKeyboard the super-Constructor is called this way:

1  
super(productName + " (" + instanceName + ")");


These brackets would be nice to have it for the mouse, too.

Can someone with commit access do these cosmetic changes?

cya

TheBohemian

---------------------------------------
my favorite OS: http://jnode.sf.net
Java 1.5 -> 1.4 converter: http://retroweaver.sf.net
Offline JuddMan

Senior Member


Medals: 1


Your Ad Here


« Reply #4 - Posted 2003-09-23 21:13:49 »

actually, brackets for all devices even better.

maybe have two calls, one for the name, as the existing getName() and getInstance() (maybe a little confusing) or getInstanceName(), something like that.
Offline TheBohemian

Junior Member




Java will rule them all!


« Reply #5 - Posted 2003-09-23 22:54:54 »

I think instanceName isn't very portable: Its a DInput specific identifier. Why not only show the name of the product and let the application that is using this define any extending identifiers?

cya

TheBohemian

---------------------------------------
my favorite OS: http://jnode.sf.net
Java 1.5 -> 1.4 converter: http://retroweaver.sf.net
Offline swpalmer

JGO Coder




Where's the Kaboom?


« Reply #6 - Posted 2003-09-24 17:03:11 »

Quote
Why not only show the name of the product and let the application that is using this define any extending identifiers?

How will it do this when all access is through JInput ?

Offline TheBohemian

Junior Member




Java will rule them all!


« Reply #7 - Posted 2003-09-24 18:34:48 »

I was regarding the naming problem only. Typically a game has to show the name of installed/used controller devices somewhere. It would be nice if JInput only delivers the name that the user finds on the box of his controller not some strange identifiers as currently.
If the application decides to show some more specific names (e.g: 'deviceName (deviceClass)' ) then it should do so.

cya

TheBohemian

---------------------------------------
my favorite OS: http://jnode.sf.net
Java 1.5 -> 1.4 converter: http://retroweaver.sf.net
Offline gregorypierce

Senior Member




I come upon thee like the blue screen of death....


« Reply #8 - Posted 2003-09-24 18:55:03 »

Each one of the JINput native code bits has the opportunity to bind devices differently and name them however. In the OSX port I trimmed it down to 'what made most sense', but that may not always be the best option.

I would suggest posting an RFE so that the naming of devices can be standardized across implementations.

http://www.gregorypierce.com

She builds, she builds oh man
When she links, she links I go crazy
Cause she looks like good code but she's really a hack
I think I'll run upstairs and grab a snack!
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.

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

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

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

E.R. Fleming (8 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!