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  
  alt Linux plugin: competition spurs the business  (Read 1987 times)
0 Members and 1 Guest are viewing this topic.
Offline TheBohemian

Junior Member




Java will rule them all!


« Posted 2004-06-14 19: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:
binary:

http://www.inf.fu-berlin.de/~rschuste/java/linux-eventinterface-jinput-plugin-0.1-bin.zip

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

http://www.inf.fu-berlin.de/~rschuste/java/linux-eventinterface-jinput-plugin-0.1-src.zip

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.

cya

TheBohemian

---------------------------------------
my favorite OS: http://jnode.sf.net
Java 1.5 -> 1.4 converter: http://retroweaver.sf.net
Offline Jeff

JGO Coder




Got any cats?


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

Terrific!

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!

http://wiki.java.net/bin/view/Games/JeffFAQ
Online kevglass

JGO Kernel


Medals: 121
Projects: 23
Exp: 18 years


Coder, Trainee Pixel Artist, Game Reviewer


« Reply #2 - Posted 2004-06-14 19: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.

Kev

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

Junior Member




Java will rule them all!


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

Thanks Smiley

Quote

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

cya

TheBohemian

---------------------------------------
my favorite OS: http://jnode.sf.net
Java 1.5 -> 1.4 converter: http://retroweaver.sf.net
Offline swpalmer

JGO Coder




Where's the Kaboom?


« Reply #4 - Posted 2004-06-15 05: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


Current project release date: sometime in 3003


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

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

Cheers

Endolf

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.

CogWheelz (14 views)
2014-07-30 21:08:39

Riven (21 views)
2014-07-29 18:09:19

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

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

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

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

pw (42 views)
2014-07-24 01:59:36

Riven (42 views)
2014-07-23 21:16:32

Riven (29 views)
2014-07-23 21:07:15

Riven (30 views)
2014-07-23 20:56:16
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!