Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (476)
Games in Android Showcase (106)
games submitted by our members
Games in WIP (533)
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  
  Don't know how to startS  (Read 1496 times)
0 Members and 1 Guest are viewing this topic.
Offline Berserker

Junior Newbie




Java games rock!


« Posted 2004-05-25 20:53:21 »

Hi forum!
Is there any documentation? I could'n find any.
The examples didn't show me my GameController either.
How can I use jinput? I downloaded the binary jars and put them in the CLASSPATH, but what's the point with "plugins", some Readme tolds about "controller"-directory... ?!?!  Huh

Someone could point this out quickly?

As for now, I developed a DirectX-DLL, which gets bound to Java via JNI (and therefore is only available on the Windows Platform) and works great.
But of course I want platform independence.

BTW, how is the interface implemented on Linux (native side)??
Offline gangrel-br

Junior Member




Java and Scala! Thats the game =)


« Reply #1 - Posted 2004-05-25 21:58:27 »

Hi

Actually, there is a BIG lack of documentation  Roll Eyes - I think Jeff was taking care of it. Am I right?

About the controller dir, it should be in the same dir where you run your game from, and inside of it you put the jinput plugin for your platform (can I put the plugins for ALL platform for better multiplatform support without any problems?).

To start over, you can use a ControllerEnviroment to get the controllers and work on them. The Javadoc can help with this.

That's about all I can say since I'm new to JInput too  Grin

Paulo "JCranky" Siqueira
Offline endolf

JGO Coder


Medals: 7


Current project release date: sometime in 3003


« Reply #2 - Posted 2004-05-26 09:36:08 »

Take a look at the links pointed too by these two threads

HTH

Endolf

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

Junior Newbie




Java games rock!


« Reply #3 - Posted 2004-05-28 08:54:25 »

Yes, that helps.

To other newbies:
The information I was looking for was
1  
2  
3  
4  
./jinput.jar
./jutils.jar
./controller/libjinput.so
./controller/linux.jar

and that I needed to compile a dxinput.dll on myself.

My sample code is now working on the Win32 platform (returns 5 devices). JWS still doesn't work.  Embarrassed
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
import net.java.games.input.*;


public class INPUTTEST
{
      static ControllerEnvironment CE;
      static Controller[] CN;
     
     
      public static void main(String[] args)
      {
            CE = ControllerEnvironment.getDefaultEnvironment();
           
            CN = CE.getControllers();
           
            System.out.println("Anzahl Controller: " + CN.length);
      }
}


Big thanks!  Roll Eyes
Offline TheBohemian

Junior Member




Java will rule them all!


« Reply #4 - Posted 2004-05-28 10:47:27 »

there is no need to compile any of the plugins yourself - except you want to hack around a little bit. The precompiled file are here: https://games-binaries.dev.java.net/build/index.html

btw: some time ago i had written a test application for jinput which aimed to look and behave a little bit nicer than the ones which are included. you can find the corresponding thread here: http://www.java-gaming.org/cgi-bin/JGNetForums/YaBB.cgi?board=jinput;action=display;num=1061080421

cya

TheBohemian

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

JGO Coder


Medals: 7


Current project release date: sometime in 3003


« Reply #5 - Posted 2004-05-28 10:59:54 »

Quote
Yes, that helps.

Glad to hear it.
Quote
I needed to compile a dxinput.dll on myself.

Hmm, there is a binary (updated nightly I understand) here
Quote
JWS still doesn't work.

Try taking a look at the JNLP file here, those binaries are old, but the jnlp file is correct last I tried/heard, and has been tested on linux, windows and mac.

HTH

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.

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

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

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

Riven (19 views)
2014-07-23 20:56:16

ctomni231 (47 views)
2014-07-18 06:55:21

Zero Volt (43 views)
2014-07-17 23:47:54

danieldean (34 views)
2014-07-17 23:41:23

MustardPeter (38 views)
2014-07-16 23:30:00

Cero (53 views)
2014-07-16 00:42:17

Riven (52 views)
2014-07-14 18:02:53
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!