Java-Gaming.org    
Featured games (91)
games approved by the League of Dukes
Games in Showcase (578)
games submitted by our members
Games in WIP (498)
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  
  WOO!!!!!, Linux plugin commited  (Read 2768 times)
0 Members and 1 Guest are viewing this topic.
Offline endolf

JGO Knight


Medals: 7
Projects: 1


Current project release date: sometime in 3003


« Posted 2003-07-31 19:51:38 »

Hi
 At last, it's done, I've just dumped the first version of the linux plugin for jinput into cvs, with all the build files, as long as g++ is in your path than you need to do nothing but 'ant' from the main jinput directory to build it all, run the texttest and readtest scripts and enjoy.

Requirements

for joystick only mode you will need a 2.4 kernel with evdev and joydev either as modules or built into your kernel

for mouse+keyboard you will need a late 2.5 or a 2.6 kernel with evdev as a module or built into your kernel

for mouse+keyboard+joystick you will need a late 2.5 or 2.6 kernel with evdev and joydev as modules or built into your kernel

for any joystick to function correctly you will need to have it functioning correctly with the jstest program (it's just a test, i don't use it in the plugin, but it prooves it works), you will also need to calibrate it using jscal. These are beyond my control.

Setting up a joystick under linux is well beyond the scope of this post, and there are plenty of websites around with help in the subject, google is your friend Smiley

Enjoy

Endolf

Offline gregorypierce

Senior Member




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


« Reply #1 - Posted 2003-07-31 20:51:06 »

Ya know - when we finish with JInput, we'll have one of the only cross platform input libraries around. Maybe we should commission OpenInput or something.

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 TheBohemian

Junior Member




Java will rule them all!


« Reply #2 - Posted 2003-07-31 21:07:29 »

This is really amazing news. I am hoping to see binaries on the jinput page.

The people at jinput  are doing a great job!

cya

TheBohemian

---------------------------------------
my favorite OS: http://jnode.sf.net
Java 1.5 -> 1.4 converter: http://retroweaver.sf.net
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline endolf

JGO Knight


Medals: 7
Projects: 1


Current project release date: sometime in 3003


« Reply #3 - Posted 2003-07-31 22:24:55 »

Hi
 just thrown together a tgz of my own builds, located in the resources section at New Dawn software

Enjoy

Endolf

Offline Jeff

JGO Coder




Got any cats?


« Reply #4 - Posted 2003-08-02 05:08:21 »

GREAT Job and congrats Endolf!

We're flipping cartwheels here over the great work that you and GP have done in taking on and writing the plugins for the two other most important systems (Linux and OSX.)  Now I just need to get some Sun geek to do a Solaris port Wink

This is terrific work guys, I'm really amazed at how fast you grokked all this out despite the at times inadequate docs (I'm working on those, really.  Hopefully everyone saw the updates to the Win32 build instructions this week.)

Speaking of the docs, if you'd like to email me or post here the text you'd like added to the JInput front page to explain build and such for your platforms, Ill get that added next week Smiley

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 Knight


Medals: 7
Projects: 1


Current project release date: sometime in 3003


« Reply #5 - Posted 2003-08-02 08:53:37 »

Hi
 Thanks Jeff, I suspect there are some memory leaks in the native side, i've and a quick look but didn't see any, but I bet I missed some, so I would quite like it if at some point someone would read through and check the native and the java side for silly things I missed, documentation that doesn't make sense etc etc. It's amaizing how much work you can get done when you don't have a job Smiley. As for build documentation, it's really just a case of typeing 'ant' at the jinput root, it goes away and builds all the native stuff underneath. The only requirements (that I know of, on my test box 'it just worked(tm)' Smiley) are on the first post about needing a 2.6 kernel with evdev module/built in if you want keyboard/mouse access, for joystick/gamepad/digitiser only access you just need evdev and joydev on any 2.4 and up kernel.

Offline gregorypierce

Senior Member




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


« Reply #6 - Posted 2003-08-02 18:26:22 »

One thing of note Jeff is that I'm not natively a unix developer so the whole concepts of makefiles is foreign to me Smiley (amazing that I've actually written native OSX code at all to be honest). XCode does generate a makefile for the project and I am going to have to bundle that with the release so it can be added to the ant file because I don't want people to wait on testing while I learn the ins and outs of make and automake 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 Jens

Senior Member




Java for games!


« Reply #7 - Posted 2003-09-08 15:27:29 »

I was just testing JInput, but now I read that a 2.6.x kernel is needed for keyboard. Is there no possibility to use a late 2.4.x kernel? Don't know if there's going to be a stable release of the 2.6.0 kernel in the near future, but it will take some time until it becomes common.

Xith3D Getting Started Guide (PDF,HTML,Source)
Offline kevglass

JGO Kernel


Medals: 85
Projects: 25


Coder, Trainee Pixel Artist, Game Reviewer


« Reply #8 - Posted 2003-09-08 15:58:17 »

There was slight discussion about whether to use the 2.6 kernel here:

http://www.java-gaming.org/cgi-bin/JGNetForums/YaBB.cgi?board=jinput;action=display;num=1058288140

I think the decision wasn't take lightly,

Kev

Offline Jens

Senior Member




Java for games!


« Reply #9 - Posted 2003-09-08 16:22:49 »

Thanks for the link. I'm sorry to read that. This will cut down the Linux user base for the next years. I'd suggest to add a "readme" file to the linux binaries which explicitly mentions that kernel 2.6. is required. The readme could also mention where to put which file to install JInput and how to test it. This requires little effort, but makes life a lot of easier for new developers.  Grin

Xith3D Getting Started Guide (PDF,HTML,Source)
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline endolf

JGO Knight


Medals: 7
Projects: 1


Current project release date: sometime in 3003


« Reply #10 - Posted 2003-09-08 18:25:02 »

Hi
 The problems around using 2.6 like kev said were not taken lightly. Under linux unless you are using command line only, you *have* to have access to an X window, which with jinput you don't have. So 2.6 is the only way to go. no 2.4 kernel has the options unless you have a USB keyboard.

Cheers

Endolf

Offline Jens

Senior Member




Java for games!


« Reply #11 - Posted 2003-09-08 20:19:32 »

I believe you. It's a good job you're doing here anyway.  Cheesy

Xith3D Getting Started Guide (PDF,HTML,Source)
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.

xsi3rr4x (27 views)
2014-04-15 18:08:23

BurntPizza (23 views)
2014-04-15 03:46:01

UprightPath (38 views)
2014-04-14 17:39:50

UprightPath (20 views)
2014-04-14 17:35:47

Porlus (36 views)
2014-04-14 15:48:38

tom_mai78101 (61 views)
2014-04-10 04:04:31

BurntPizza (119 views)
2014-04-08 23:06:04

tom_mai78101 (219 views)
2014-04-05 13:34:39

trollwarrior1 (186 views)
2014-04-04 12:06:45

CJLetsGame (193 views)
2014-04-01 02:16:10
List of Learning Resources
by Longarmx
2014-04-08 03:14:44

Good Examples
by matheus23
2014-04-05 13:51:37

Good Examples
by Grunnt
2014-04-03 15:48:46

Good Examples
by Grunnt
2014-04-03 15:48:37

Good Examples
by matheus23
2014-04-01 18:40:51

Good Examples
by matheus23
2014-04-01 18:40:34

Anonymous/Local/Inner class gotchas
by Roquen
2014-03-11 15:22:30

Anonymous/Local/Inner class gotchas
by Roquen
2014-03-11 15:05:20
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!