pouët.net

Go to bottom

Gamepad emulation, how?

category: code [glöplog]
 
Hey, guys!

I've been looking for a solution to emulate a gamepad. Does anyone know if there's a library, somewhere, for that?

Thanks in advance,
Danguafer
added on the 2012-09-27 02:02:40 by Danguafer Danguafer
Emulate how?
added on the 2012-09-27 08:34:59 by CobaltHex CobaltHex
You can buy USB gamepads nowadays.
added on the 2012-09-27 09:14:56 by Tjoppen Tjoppen
do you mean an xbox controller?
added on the 2012-09-27 12:17:22 by Gargaj Gargaj
i think he wants his (windows) pc to believe that a gamepad is connected but it fact its mapped to some keys on the board.
much like with the pads n joysticks in various emulators.

of course, buying an xbox 360 pad is most likely the best solution ^^ (yes, they work great on pc)
added on the 2012-09-27 12:30:21 by wysiwtf wysiwtf
i would also recommend the xbox pad, it's the greatest and most ergonomic gamepad i ever had!
added on the 2012-09-27 14:53:33 by v3nom v3nom
http://www.electracode.com/4/joy2key/JoyToKey%20English%20Version.htm
added on the 2012-09-27 15:54:06 by alien^PDX alien^PDX
Maybe glovepie too:
https://sites.google.com/site/carlkenner/glovepie
Useful for mapping one input device to another.
added on the 2012-09-27 16:02:49 by evilpaul evilpaul
That ? http://code.google.com/p/x360ce/
added on the 2012-09-27 16:42:21 by Romain337 Romain337
How would a library that wraps DirectInput to support old gamepads in new games help someone who wants to emualte a gamepad without having an actual gamepad? Same for JoyToKey...
like key2joy? mmmh. does wrapping/mapping it with some global windows messages do that trick? i dunno. :/
added on the 2012-09-27 19:02:19 by yumeji yumeji
Quote:
If you want to emulate a joystick (except for Xbox 360 controllers) with GlovePIE...

http://glovepie.org/w/index.php?title=Preliminary_Documentation_v0.45#PPJoy
added on the 2012-09-27 19:25:09 by evilpaul evilpaul
Why not using placeholder functions that return a keyboard key instead of a gamepad key?
added on the 2012-09-27 23:13:00 by xernobyl xernobyl
I want to create a server that listens to other computer connection. And when they connect, the windows recognizes that a new gamepad device was connected into the computer. The server receive their messages and acts like a driver or something like that.

I'm already reading the WDK documentation. It will be the first time I'm developing a driver. But I hope I get it working in no time.
added on the 2012-09-28 00:44:28 by Danguafer Danguafer
So you wanna forward gamepad connections from one PC to another?
maybe he's making one of those fancy cloud gaming solutions.
added on the 2012-09-28 00:53:32 by Gargaj Gargaj
There are endless possibilities, mein dear :D I want to make it in secret, because I'm planning to get some money with this simplistic idea, sorry lol
added on the 2012-09-28 02:23:41 by Danguafer Danguafer
@Saga Musix:

I dunno he haven't no gamepad, and anyway, it's a link to emulate a gamepad i've posted. wtf?
added on the 2012-09-28 08:16:52 by Romain337 Romain337
Quote:
I've been looking for a solution to emulate a gamepad.

Read: "I don't have a gamepad but I want to emulate one"

Romano58, have you even read what x360ce does? I will rephrase it again for you: x360ce is a wrapper for applications, which only supports gamepads that work with XInput (like the xbox360 controller), to support older gamepads which only work with DirectInput. It doesn't emulate a gamepad, it is just a translation layer between two APIs.

login

Go to top