Hi !
Featured games (84)
games approved by the League of Dukes
Games in Showcase (604)
Games in Android Showcase (171)
games submitted by our members
Games in WIP (654)
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 1753 times)
0 Members and 1 Guest are viewing this topic.
Offline Berserker

Junior Newbie

Java games rock!

« Posted 2004-05-25 18: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 Devvie

Java and Scala! Thats the game =)

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


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
Exp: 15 years

Current project release date: sometime in 3003

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

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



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 06:54:25 »

Yes, that helps.

To other newbies:
The information I was looking for was

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

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 Devvie

Java will rule them all!

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

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:;action=display;num=1061080421



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

JGO Coder

Medals: 7
Exp: 15 years

Current project release date: sometime in 3003

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

Yes, that helps.

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

Hmm, there is a binary (updated nightly I understand) here
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.



Pages: [1]
  ignore  |  Print  
You cannot reply to this message, because it is very, very old.

SHC (37 views)
2015-08-01 03:58:20

Jesse (24 views)
2015-07-29 04:35:27

Riven (44 views)
2015-07-27 16:38:00

Riven (25 views)
2015-07-27 15:35:20

Riven (27 views)
2015-07-27 12:26:13

Riven (18 views)
2015-07-27 12:23:39

BurntPizza (40 views)
2015-07-25 00:14:37

BurntPizza (48 views)
2015-07-24 22:06:39

BurntPizza (33 views)
2015-07-24 06:06:53

NoxInc (40 views)
2015-07-22 22:16:53
List of Learning Resources
by gouessej
2015-07-09 11:29:36

How Do I Expand My Game?
by bashfrog
2015-06-14 11:34:43

List of Learning Resources
by PocketCrafter7
2015-05-31 05:37:30

Intersection Methods
by Roquen
2015-05-29 08:19:33

List of Learning Resources
by SilverTiger
2015-05-05 10:20:32

How to: JGO Wiki
by Mac70
2015-02-17 20:56:16

2D Dynamic Lighting
by ThePixelPony
2015-01-01 20:25:42

How do I start Java Game Development?
by gouessej
2014-12-27 19:41:21 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!