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 (536)
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  
  jinput under other platforms  (Read 5466 times)
0 Members and 1 Guest are viewing this topic.
Offline endolf

JGO Coder


Medals: 7


Current project release date: sometime in 3003


« Posted 2003-06-27 15:59:38 »

Hi
 read the postings that say jinput is being worked on for osx, what about linux and solaris?

Cheers

Endolf

Offline Jeff

JGO Coder




Got any cats?


« Reply #1 - Posted 2003-06-27 21:03:50 »

Not yet.  

Would you like to?    Grin Grin Grin

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!

http://wiki.java.net/bin/view/Games/JeffFAQ
Offline endolf

JGO Coder


Medals: 7


Current project release date: sometime in 3003


« Reply #2 - Posted 2003-06-28 08:06:59 »

B****x

 I don't have access to solaris, I was just asking, and, erm, linux, erm, yeah, erm, arse, spose I have too now Cheesy

know nothing about the joystick interface to linux, guess I have some learning to do Smiley

Endolf

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Jeff

JGO Coder




Got any cats?


« Reply #3 - Posted 2003-06-28 08:22:13 »

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 Smiley

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!

http://wiki.java.net/bin/view/Games/JeffFAQ
Offline gregorypierce

Senior Member




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


« Reply #4 - Posted 2003-06-28 17:29:27 »

I'm going to attempt to integrate the OSX HIDManager JNI binding I was working on for another project into this API next week. Then at least I'll be using one standard API for that project Smiley

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!
Offline Jeff

JGO Coder




Got any cats?


« Reply #5 - Posted 2003-06-28 20:41:40 »

Way cool, thanks Smiley

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) I
am 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!

http://wiki.java.net/bin/view/Games/JeffFAQ
Offline gregorypierce

Senior Member




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


« Reply #6 - Posted 2003-06-28 21:29:03 »

As long as the API is fairly generic and deals with devices in a generic manner using Flyweights or similar to allow any generic device to gain capabilities - this will likely work out very well.

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!
Offline endolf

JGO Coder


Medals: 7


Current project release date: sometime in 3003


« Reply #7 - Posted 2003-06-29 09:30:28 »

Quote
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 Smiley

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 Smiley. 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 Smiley

Cheers

Endolf

Offline endolf

JGO Coder


Medals: 7


Current project release date: sometime in 3003


« Reply #8 - Posted 2003-06-30 15:43:36 »

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?

Cheers

Endolf

Offline leknor

Junior Member




ROCK!!!


« Reply #9 - Posted 2003-06-30 17:41:24 »

Quote
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.
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Jeff

JGO Coder




Got any cats?


« Reply #10 - Posted 2003-06-30 19:17:14 »

I'm behind sprry.  Ill check my Linux Game Programminng book today for any helpful words of wisdom.

While it might be possible to do some kind of AWT based psuedo-device through the plug-in system, lets see if we can avoid it first Smiley

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!

http://wiki.java.net/bin/view/Games/JeffFAQ
Offline Jeff

JGO Coder




Got any cats?


« Reply #11 - Posted 2003-06-30 19:18:35 »

OS9 had a set of very DX-like libraries called "Game Sprockets".  I haven't researched OSX's equivalent yet.

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!

http://wiki.java.net/bin/view/Games/JeffFAQ
Offline Jeff

JGO Coder




Got any cats?


« Reply #12 - Posted 2003-07-07 19:52:19 »

On the Linux front.

My Linux game development book (premier press) suggests SDL as the way to read mouse, keyboard or game controllers.

I havent read deep enough to find out if there is discovery yet.

One solution might be to have an ini file in Linux and then discovery tools could write that ini file when we figure out how to do diescovery.


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!

http://wiki.java.net/bin/view/Games/JeffFAQ
Offline endolf

JGO Coder


Medals: 7


Current project release date: sometime in 3003


« Reply #13 - Posted 2003-07-09 16:41:39 »

Hi
 I looked at SDL, but it needs you to open a graphics window with it (that is more that 0,0) before you can capture the events Sad, unesll I missed something

Offline tortoise

Junior Member




<3 Shmups


« Reply #14 - Posted 2003-07-10 18:47:59 »

It also seems with SDL you have to start it and have it running in the background in its own thread? It didn't strike me as too appetizing.

There are good docs on the joystick interface under (doing this from memory at work..) /usr/src/linux/documentation/input/joystick-api.txt

If that's not it exactly, it's pretty close. That document is really helpful for direct, low level joystick polling.

I'm pretty sure that's how JavaJoystick does linux.
Offline endolf

JGO Coder


Medals: 7


Current project release date: sometime in 3003


« Reply #15 - Posted 2003-07-10 19:02:08 »

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 Smiley

Offline Jeff

JGO Coder




Got any cats?


« Reply #16 - Posted 2003-07-14 23:05:59 »

Does that discuss discovery at all?

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!

http://wiki.java.net/bin/view/Games/JeffFAQ
Offline Jeff

JGO Coder




Got any cats?


« Reply #17 - Posted 2003-07-14 23:08:20 »

Cool End, thanks for taking this on Smiley


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!

http://wiki.java.net/bin/view/Games/JeffFAQ
Offline gregorypierce

Senior Member




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


« Reply #18 - Posted 2003-07-15 02:21:31 »

Quote
OS9 had a set of very DX-like libraries called "Game Sprockets".  I haven't researched OSX's equivalent yet.

JK



Game Sprokets no longer exist (are no longer supported).

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!
Offline endolf

JGO Coder


Medals: 7


Current project release date: sometime in 3003


« Reply #19 - Posted 2003-07-15 09:59:28 »

Quote
Cool End, thanks for taking this on Smiley

Don't thank me yet, it's not done Smiley. 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?

Offline endolf

JGO Coder


Medals: 7


Current project release date: sometime in 3003


« Reply #20 - Posted 2003-07-15 12:53:25 »

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 Smiley. No more joystck progress as I was playing with libgii again, but I feel I am winning at last Smiley.

Cheers

Endolf

Offline Jeff

JGO Coder




Got any cats?


« Reply #21 - Posted 2003-07-15 18:11:21 »

Quote


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?


Just email me at jeffrey.kesselman@sun.com and tell me what your IRL name is so i cna match it up with the agreement.

(Oh, and I can reimburse you the $9.00 out of my own pocket if you'ld like, seeing as how your strapped at the moment.  Would PayPal work?)


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!

http://wiki.java.net/bin/view/Games/JeffFAQ
Offline endolf

JGO Coder


Medals: 7


Current project release date: sometime in 3003


« Reply #22 - Posted 2003-07-15 23:32:01 »

Quote

(Oh, and I can reimburse you the $9.00 out of my own pocket if you'ld like, seeing as how your strapped at the moment.  Would PayPal work?)


Kind offer, but no need, I don't mind paying for something, just not too keen on paying something for nothing Smiley

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 (12 views)
2014-07-29 18:09:19

Riven (8 views)
2014-07-29 18:08:52

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

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

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