If you need help figuring any of the code out ping me.I inherited it from Mike Martak but as I've been through the upgrade to DX8 (his code was DX7, and DX9 broke it) Iam fairly comfortable with the machine-interface layer.

JK

Got a question about Java and game programming? Just new to the Java Game Development Community? Try my FAQ. Its likely you'll learn something!

Well, I have a book on Linux game programming on my shelf. Ill see what it says about input devices tomorrow if yould like. Might give you someplace to start

JK

Hi That would be cool, I've had a quick look, and there are other joystick librarys about out there, that have good docs, so I can work that out, it's just the keyaboard and mouse that stump me, the only docs I have seen so far require knowing at least which display the app is on on the Xserver, or even down to a specific window, which isn't particularly usefull . I'm trying to get to the stage where the win32 and linux version behave much alike, i.e, even if there is no window, or your window isn't the one in focus, you still get the mouse/keyboard events/names. But this is new to me, and being butt headed, i *will* figure it out

hmmm, X really does suck, with no access to any window that exists (ie, no JFrame etc is passed down through the jinput api, and I don't know that I can get one from jni), and if you look at the windows version you don't even *need* a window open to reference it, I have no idea where to go with this on the mouse and keyboard front, I can knock up some joystick support I think without much problem, but I don't know where to go from here. I've not played myself but understand OSX to be a modified BSD clone, so I *guesS* it runs some version of X?, if so, how is the osx version doing it?

I've not played myself but understand OSX to be a modified BSD clone, so I *guesS* it runs some version of X?, if so, how is the osx version doing it?

MacOS X runs on a BSD-like base operating system. The gui user interface is seperate and runs in user space I think and it is completely new. It is not based on X Windows. That said you can get X Windows compatibility though an app from Apple.

Hi The joystick isn't a problem, the interface is easy, and the hardware specifics are abstracted out as the should be. I've had a look and libgii, but this looks like i would have to guess at what type of mouse, where it's attached, what device the keyboard was etc etc etc. It's just a right mess. Hence the lack of mouse or keyboard support yet, joystick should be too much longer, as long as I don't keep getting too distracted by the one way flow of cash

On Discovery we couldjust whim out and use a config file. Then if we ever fogure out how to do real discovery we coudl either repalce the config file OR justw rite a utility that does the discovery and writes the config file.

JK

Got a question about Java and game programming? Just new to the Java Game Development Community? Try my FAQ. Its likely you'll learn something!

Don't thank me yet, it's not done . libgii is a nightmare, I'm having real problems getting it to do anthing, there is very little documentation. I can get keyboard events from it, but only from stdin, so as soon as you switch windows it goes again, I still can't get ti to listen to my mouse, even though the documentation says it should work with USB mice. V little progress last week. Still no job and the money ran out so I was kinda distracted. Hopefully I will get the joystick stuff working this week and stable enough to let people test it. But still no mouse or keyboard

Cheers

Endolf

P.S. I spent 6 pounds (9 USD) faxing the developers agrement thing to the US, but havn't heard anything, did it get there?, do I need to re-apply for developer status, or should I just email you the code?

Hi Partial success. I can get mouse events from libgii now. There is an environment variable that lists a set of inputs, and then inside your app you can set it up to read from those. The demos that come with libgii don't give any indication of this. So having given up and tried something myself and googled around a bit the mouse bits works from setting GII_INPUT, keyboard should work this way too but I'm getting an error, persistance will win out, I hope . No more joystck progress as I was playing with libgii again, but I feel I am winning at last .

P.S. I spent 6 pounds (9 USD) faxing the developers agrement thing to the US, but havn't heard anything, did it get there?, do I need to re-apply for developer status, or should I just email you the code?

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