FAQ
Cover
This is the archive Discourse for the Processing (ALPHA) software.
Please visit the new Processing forum for current information.

   Processing 1.0 _ALPHA_
   Suggestions
   Software Suggestions
(Moderator: fry)
   game pads
« Previous topic | Next topic »

Pages: 1 
   Author  Topic: game pads  (Read 978 times)
mazben
Guest
Email
game pads
« on: Oct 17th, 2003, 3:32pm »

Ideas or tutorials on implementing game pads to P5?
 
-m
 
fry


WWW
Re: game pads
« Reply #1 on: Oct 28th, 2003, 6:52pm »

i recently had good luck with integrating this fella:
http://sourceforge.net/projects/javajoystick/
(at least i think it was this one, the site is down as i post this) into a java program.  
 
it was the simplest of any of the joystick libraries i found, and only requires a couple lines of code to integrate with your app.  
 
you oughta be able to just drop joystick.jar and the dll (if you're on windows) into the 'code' folder of your sketch, and start mucking about with their simple example.
 
this is something that would be useful to include as an example in the future, i'm guessing. maybe i can write something simple for it.
 
Koenie

170825270170825270koeniedesign WWW Email
Re: game pads
« Reply #2 on: Oct 28th, 2003, 7:34pm »

Since we're on the topic of gaming devices now, I wondered whether it would be possible to run P5 or Java on my Gameboy Advance. I know they are using c/c++ for this at the moment, but since it compiles to a rom file, it should be possible to get Java to compile to that specific format, I guess. Does anyone know more about this topic?
 
Koenie
 

http://koeniedesign.com
David Morris
Guest
Email
Re: game pads
« Reply #3 on: May 12th, 2004, 3:35am »

Fry,
I'm new to Processing & java, although I did get a nifty app together.  Now I'm trying to add joystick functionality, and am trying to work with the java joystick package you flagged above. But I can't get it to compile.  Here's what I am doing:
 
com.centralnexus.input.Joystick j;
om.centralnexus.input.JoystickListener jl;
 
void setup(){
 //init joystick
 j = new com.centralnexus.input.Joystick.createInstance();
 
}
 
I keep on getting a message that it can't find createInstance()
 
What am I doing wrong?
 
fry


WWW
Re: game pads
« Reply #4 on: May 12th, 2004, 4:42am »

you prolly need to get the 'new' outta that line.
 
skloopy

WWW
Re: game pads
« Reply #5 on: May 12th, 2004, 5:34am »

Hey Koenie I wanna do that too! I found this thing that might help
 
http://www.jemblazer.com/index.htm
 
It looks like a cart that you can download Java games to. But the apps have to be in the kind of format you would use on a cel phone, and I don't think processing can export those by itself. You'd probably have to know hardcore java cel-phone dev tricks.
 
Still it'd be cool
 
Pages: 1 

« Previous topic | Next topic »