PDA

View Full Version : Game control using a usb controller


flashjordon
02-27-2009, 12:06 AM
I'm sure this has been asked several times, but I've found nothing myself;

I'm making a game in uni in my spare time, just a simple platform beat 'em up.

I want to be able to have it so that I can use two seperate usb controllers to control both players, or, at the very least, one controller and one keyboard.


I need a way to use inputs from said controller/s, and caan't find anything to help me...

Is there a way to do it? Might it be possible to, for example, use a 'create your own key configeration' to detect the button presses?

Anything would be greatly appreciated, as I'm quite new to this all...

EightySeven
02-27-2009, 02:43 AM
I don't think Flash's key codes support additional controllers other then keyboard and mouse... you might try to map you controllers to keyboard presses? ex upbutton on the controller is W on the keyboard

or something like that

CyanBlue
02-27-2009, 04:06 AM
There is a project called WiiFlash...
http://code.google.com/p/wiiflash/
http://wiiflash.bytearray.org/

flashjordon
02-28-2009, 07:48 PM
I was thinking of mapping the controller to key presses, but every pc controller I've had seems to be lacking thaat feature.
If you could point me in the direction of a good controller then that'd be great...

Also, I've heard of wii flash, it's very intruiguing, but when I tried playing a code off the wiiflash website on my wii it failed to read my controller's actions...