The explosive sequel to the hit game Strike Force Heroes!3.95 / 5.00 9,190 Views
basketball with 16 levels plus 30 second dunk fest3.79 / 5.00 7,524 Views
Defeat the enormous mechanical beasts--and become one of them.4.02 / 5.00 43,718 Views
Is it impossible to implement gamepad support for browser games?
Specifically, gamepads with two analog sticks.
For example, using the analog stick to control a character's movement with a 360Â° direction, rather than the maximum 8 directions or using the analog stick to aim a cross hair.
I think it depends on how the gamepad works. I believe they simulate actual key presses and stuff. May be wrong though.
ActionScript doesn't support gamepads, so you'd have to use something like Xpadder to covert the gamepad button presses into keyboard actions
At 7/1/12 08:58 AM, arkrix wrote: I think it depends on how the gamepad works. I believe they simulate actual key presses and stuff. May be wrong though.
Older gamepads might operate this way (and by old I mean from back in the 90s) but modern ones, such as the Xbox 360 controller, do not.
Pressings the buttons sends JOY_1, JOY_2, JOY_3, et cetera, signals. They have their own actions so that games can be designed specifically for them.
This C++ tutorial on Xinput covers a lot of how it all works.