Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (789)
Games in Android Showcase (234)
games submitted by our members
Games in WIP (864)
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  
  alt Linux plugin: competition spurs the business  (Read 3822 times)
0 Members and 1 Guest are viewing this topic.
Offline TheBohemian

Junior Devvie

Java will rule them all!

« Posted 2004-06-14 17:06:26 »

I couldn't resist. I was interested in JNI and after finishing my first JInput plugin using SDL I needed more ... the result is an alternative JInput plugin for Linux using the event interface of the Linux kernel.

It has the following features (which are not or only partially available in the 'official' plugin):
- multiple event devices belonging to the same physical device result in only one Controller
- all keys work on KB (especially the ones I mentioned not working in another thread)
- unsuitable event devices (eg. PC speaker) will not make up a Controller
- native plugin can be compiled for all Linux-supported hw architectures (unmodified Java classes will fit to every JNI library)
- some phantom features are filtered out (source doc explains that)
- simpler device type (Controller.Type) identification
- uses longer self-explaining JNI library name

things I intentionally made different:
- no subcontrollers
- mice/kb are not special
- all the important stuff is done on the good side of JNI
(some people might guessed that Smiley )

things which are missing:
- no rumbler support (lack of knowledge, but therefore only read access to the event device files is needed)
- no proper names for the Axis instances (just wrapped Cs constant names in brackets)
- not really cared for Axis.Identifier (anyway its broken in the core API and other plugins)
- there is much API doc but I have copied some classes/interfaces from my SDL plugin and have not updated the doc therein
- ant build script is one my finest but it was copied from another project too and needs some cleanup

the files are here:

source code (not sure about the license - depends on the interest on it. I have no intention to block JInput by chosing LGPL although I would prefer it.)

And dont think I want to spoil the party: I have already written endolf what I found out how some problems with the official plugin can be solved.

Btw: I am in need of people who can check for portability (64bit) issues in the native code.

Now test this thing and tell me whether it behaves nicely in your environment.



my favorite OS:
Java 1.5 -> 1.4 converter:
Offline Jeff

JGO Coder

Got any cats?

« Reply #1 - Posted 2004-06-14 17:14:02 »


I don't ,see any problems with multiple plug-ins. The key is just that the APi inertface remains consistant Wink  This is one of tbe beuties of the plug-in approach, it leaves chocie up to the developers 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!
Offline kevglass

« JGO Spiffy Duke »

Medals: 319
Projects: 25
Exp: 22 years

Coder, Trainee Pixel Artist, Game Reviewer

« Reply #2 - Posted 2004-06-14 17:35:50 »

Nice work!

Unfortunately we now have a choice of plugins on Linux where very few people will ever use it and a lack of support on the platform Java gaming has a real chance on.. Mac.

Still, good job.


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

Junior Devvie

Java will rule them all!

« Reply #3 - Posted 2004-06-14 18:05:12 »

Thanks Smiley


Unfortunately we now have a choice of plugins on Linux where very few people will ever use it and a lack of support on the platform Java gaming has a real chance on.. Mac.  

How did the SDL people got joystick support to work? SDL is LGPL IMHO its not fobidden to get answers from sources ...



my favorite OS:
Java 1.5 -> 1.4 converter:
Offline swpalmer

JGO Coder

Exp: 12 years

Where's the Kaboom?

« Reply #4 - Posted 2004-06-15 03:23:14 »

Gregory Pierce laid the groundwork for the Mac plugin and got the mouse and keyboard (mostly) working.  I have done a bit of work to get my gamepad working.   But it needs more work.  I may move some of the code to LWJGL because theyare deparate for working input on Mac when AWT threads are active.

It isn't all that difficult.. but it is time consuming... and of course I thought I was going to have time for this before and... well,... didn't.

Offline endolf

JGO Coder

Medals: 7
Exp: 15 years

Current project release date: sometime in 3003

« Reply #5 - Posted 2004-06-15 06:21:50 »

 The linux plugin I wrote (I hate calling it the official one, it's just the first one that was done Smiley), is currently in tiny little pieces whilst I break and fix a few things, one of which is supposed to be rumbler support, I'm also trying to move some junk from the jni side to the java side, if nothing else this should unbreak a few of my bugs Smiley. I might also make it so any event device that does show up with no buttons or axis is removed. I also have some sig faults to fix (oops). I think i'll delay releaseing it untill we sort out these axis identifiers.



Pages: [1]
  ignore  |  Print  

hadezbladez (2595 views)
2018-11-16 13:46:03

hadezbladez (928 views)
2018-11-16 13:41:33

hadezbladez (2551 views)
2018-11-16 13:35:35

hadezbladez (500 views)
2018-11-16 13:32:03

EgonOlsen (3675 views)
2018-06-10 19:43:48

EgonOlsen (4028 views)
2018-06-10 19:43:44

EgonOlsen (2440 views)
2018-06-10 19:43:20

DesertCoockie (3247 views)
2018-05-13 18:23:11

nelsongames (3293 views)
2018-04-24 18:15:36

nelsongames (4264 views)
2018-04-24 18:14:32
Java Gaming Resources
by philfrei
2019-05-14 16:15:13

Deployment and Packaging
by philfrei
2019-05-08 15:15:36

Deployment and Packaging
by philfrei
2019-05-08 15:13:34

Deployment and Packaging
by philfrei
2019-02-17 20:25:53

Deployment and Packaging
by mudlee
2018-08-22 18:09:50

Java Gaming Resources
by gouessej
2018-08-22 08:19:41

Deployment and Packaging
by gouessej
2018-08-22 08:04:08

Deployment and Packaging
by gouessej
2018-08-22 08:03:45 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‑
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!