Forums

ForumsProgramming Forum

Help: List type of inputs in Flash?

Posted Jan 15, '12 at 11:50pm

313230

313230

10 posts

Hi,

I am basically not a Flash programmer, but hardware designer. I am designing a controller and want to use Flash to promote it.

AFAIK, Flash accept these input:
Keyboard
Touch
Mouse: left, right, middle, wheel

Does Flash support gaming controller ie Xbox?
Does Flash support multi mouse button like X1,X2 mouse button or customized buttons?

Thanks

 

Posted Jan 16, '12 at 12:26am

Carlytoon

Carlytoon

329 posts

Does Flash support gaming controller ie Xbox?

Well, I this game support it...
http://armorgames.com/play/2388/meat-boy

...but I think that you need to download a driver.
I have no answer for the other questions, sorry :3

 

Posted Jan 16, '12 at 9:50am

BlueJayy

BlueJayy

27 posts

As far as I know, Flash (on its own) cannot access drivers other that the ones already given to it. (Keyboard, Mouse, etc.) I've seen other people combine Flash with Java or C# to access the drivers, but none with just Flash.  You may need to download a program that converts controller/gamepad inputs to keyboard/mouse inputs, such as Xpadder.

As for the second question, Flash only supports once mouse button for clicking. (the left mouse button)  Right clicking is reserved for the little Adobe preferences and "About Adobe" menu that you see in every Flash game, and middle clicking (mouse wheel click) is not supported.  However, Flash does recognize the mouse wheel being spun, so you could use that, but it would have the same capabilities of a button press.

Link to Xpadder
[url=http://xpadder.com/]

Hope I could help. :)

 

Posted Jan 16, '12 at 1:58pm

PixelSmash

PixelSmash

567 posts

I think if you look around, you can find tons of resources on this. I've seen Flash work with controllers for xbox, playstation, wii, as well as kinect and even completely custom-built controllers. You just have to look for the right library or tutorial :)

 

Posted Jan 16, '12 at 7:27pm

313230

313230

10 posts

Thank you guys, your advices really help

 
Reply to Help: List type of inputs in Flash?

You must be logged in to post a reply!