Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (488)
Games in Android Showcase (112)
games submitted by our members
Games in WIP (553)
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: Devs: Basic flow for recognising a device on: 2009-01-07 04:49:48
Ok,

Just to let people know, I've got the SpaceNavigator working with jinput under Mac OSX.

The change to the jinput Java code is almost trivial. Is there somewhere I should send a patch?

Looking at the issue, it seems to me that this aprt of the code could actually be parameterised and then changes suh as mine could be made to via a properties file, or through an API, rather than modifying the source and rebuilding the JAR.

Thanks again for this great library - you've just made a number of people really happy :-)

Cheers!
Nik
2  Java Game APIs & Engines / JInput / Re: Devs: Basic flow for recognising a device on: 2009-01-06 05:47:03
Guess what??

My app is now recognising the SpaceNavigator device.

Sadly, my program isn't getting any events from it at all, so I need to debug that now :-)

Thanks for listening guys, and I'll let you all know once I've got it working properly!

Cheers!
Nik
3  Java Game APIs & Engines / JInput / Re: Devs: Basic flow for recognising a device on: 2009-01-06 05:31:58
Ok, so the problem is that the SpaceNavigator is being seen as a MULTI_AXIS_CONTROLLER (quite reasonable), and there isn't any code for one.
Surely it's not so easy as just adding a line of code in OSXEnvironmentPlugin?

Oh well, one way to find out... Shocked)

Cheers!
Nik
4  Java Game APIs & Engines / JInput / Re: Devs: Basic flow for recognising a device on: 2009-01-06 05:25:51
Ah, ok answering my own question:  OSXEnvironmentPlugin...

Cheers!
Nik
5  Java Game APIs & Engines / JInput / Devs: Basic flow for recognising a device on: 2009-01-06 05:16:21
Hi All,

I am trying to get JInput to recognise the SpaceNavigator on OSX.

With a bit of debugging code in the native libraries, I see that the native library is seeing the SpaceNavigator, and that java HIDDevice is being constructed for it. But it is not present in the array of Controllers that is passed to my user code.

So, what chain of events to I need to trace to find out where (and why) the SpaceNavigator HIDDevice is being discarded?

Cheers!
Nik
6  Java Game APIs & Engines / JInput / Building the native libs on: 2009-01-06 04:20:45
Hi all,

I have a couple of questions regarding building the JInput native libraries:

Q1. Is it possible to build the OSX native library on my linux box?
This would be much more convenient (and faster).

Q2. My Mac is an old PPC (G4 Cube) running OSX 10.4. When I try to build the native libraries, I get an error telling me it can't find the i686-gcc program. I've commented the Intel part out for the moment and am  building just the PPC part, but how do I get the intel part built on my PPC box?

Background:
I am using JInput to add support for various 3D devices, starting with the 3DConnexion SpaceNavigator, to an open-source Java 3D application (Art Of Illusion).
So far I have had partial success on linux (not all axes are detected), reasonable success on Windows, and no success on Mac OSX.
I've happily modified and rebuilt the linux native (.so) library, and am pretty sure the problem is in linux and not jinput.

However, on OSX the device is not seen at all, so I am trying to merge in code from a number of other sources to get the SpaceNavigator recognised under OSX.

Q3: Does anyone have any hints or pointers to other work on this that may help? I am happy to do the actual legwork, but any other code snippets involving the OSX HID system that I can find would be appreciated. Shocked)

Cheers!
Nik
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.

TehJavaDev (17 views)
2014-08-28 18:26:30

CopyableCougar4 (26 views)
2014-08-22 19:31:30

atombrot (39 views)
2014-08-19 09:29:53

Tekkerue (36 views)
2014-08-16 06:45:27

Tekkerue (33 views)
2014-08-16 06:22:17

Tekkerue (22 views)
2014-08-16 06:20:21

Tekkerue (33 views)
2014-08-16 06:12:11

Rayexar (68 views)
2014-08-11 02:49:23

BurntPizza (45 views)
2014-08-09 21:09:32

BurntPizza (36 views)
2014-08-08 02:01:56
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!