Home Welcome, Guest. Please Login or Register.
September 04, 2003, 10:45:27 AM
Home | Help | Search | Login | Register


BYOAC Forums

Main Forum Buy/Sell/Trade Software Forums
Everything Else Board Discussion Monitor/Video
Jukebox/MP3 Artwork Project Announcements
  Consoles  
OTHER SITES' FORUMS
Rules | Old Boards | Old Archives | BYOAC People Finder (USA) | Chatroom


Don't miss the rest of the web site!
Did you come straight to the message boards? Did you know they were just one part of a much larger web site?
Visit the rest of the web site HERE!


  Build Your Own Arcade Controls Message Forum
  
  Main Forum

  Gamepad Emulator why not?
«== previous next ==»
Pages: [1] 2 | Go Down Reply | Notify of replies | Send the topic | Print
   Author  Topic: Gamepad Emulator why not?  (Read 745 times)
allroy1975
Full Member
***

Offline

Posts: 54



I'm a dork!
allroy1975
View Profile | E-Mail
Gamepad Emulator why not?
« on: August 15, 2003, 05:56:39 PM »
Reply with quote

I mentioned this in the Sports games with IPac  http://www.arcadecontrols.org/yabbse/index.php?board=1;action=display;threadid=10652 thread, but I'm afraid it won't get seen as well there. 
I've written some VB programs before, but nothing complicated.  Is there a program (or would it be hard to write one?) that will create some "virtual" gamepads?  Like, When you go into the Windows Control Panel, the joystick section would show X number of controllers.  You could configure these "virtual" controllers to be keys on the keyboard. That would mean you COULD use all your 4 player CPs to play stuff like EA sports games and my (age old) virtua Tennis question. 

Wouldn't it?
It doesn't seem like it should be too hard to write it.  If it doesn't exist. 
Has anyone seen anything like this?

Report to moderator   Logged

They have the FAST Ms. Pac-Man!  MOM!  Can I have a quarter!??

Howard_Casto
Idiot Police
Developers
Full Member
***

Offline

Posts: 2369



Your post's soul is mine!
thecastoone
View Profile | WWW | E-Mail
Re:Gamepad Emulator why not?
« Reply #1 on: August 15, 2003, 07:20:04 PM »
Reply with quote

This would be super hard.  Input is one of the lowest levels of programming and bypassing it is a real pain.  Not to mention the fact that every pc game known to man supports keyboard keys, but not all support joysticks. 

So what exactly would be the point?

Report to moderator   Logged

I'm the type of guy that you don't want to meet alone in a dark arcade.

allroy1975
Full Member
***

Offline

Posts: 54



I'm a dork!
allroy1975
View Profile | E-Mail
Re:Gamepad Emulator why not?
« Reply #2 on: August 15, 2003, 10:43:42 PM »
Reply with quote

Quote:
So what exactly would be the point?


well, seeing as how you're anti-4-Player CP, there wouldn't be MUCH point for you. 

The point for people like me who have a 4 Player CP, would be to be able to play Doubles in Virtua Tennis (on the PC version, without having to build another cab or CP with the Dreamcast in it) where the game only allows 1 player to be controlled by Keyboard.  The rest have to be joysticks.  Same goes for EA Sports games...didn't I put that in the orignal post?  Or are you just looking for another oportunity to rip us who have 4 player CPs? 

I know this makes sense to those of us who have 4 player CPs and although we don't regret our decision to go 4P, we're always looking to add games we can play with our friends.

Report to moderator   Logged

They have the FAST Ms. Pac-Man!  MOM!  Can I have a quarter!??

jakejake28
Full Member
***

Offline

Posts: 591



Thank you sir, may I have another?

View Profile | E-Mail
Re:Gamepad Emulator why not?
« Reply #3 on: August 15, 2003, 11:17:13 PM »
Reply with quote

i have a two player cp and i am interestd

Report to moderator   Logged

It's all about the Pentiums

u_rebelscum
Full Member
***

Offline

Posts: 1028



You rebel scum

View Profile | WWW | E-Mail
Re:Gamepad Emulator why not?
« Reply #4 on: August 16, 2003, 12:43:44 AM »
Reply with quote

Quote from: Howard_Casto on August 15, 2003, 07:20:04 PM
So what exactly would be the point?


Many current windows games, especially sports games and games already ported to/from consoles, assign player inputs by device, with the keyboard one device.  Each gamepad, joystick, ect, OTOH is it's own device.  These games let control panels with ipac, keywhiz, hagstom,  MK64 (such as xarcade, hotrodse, and slikstik) only able to control one player.  (more info in the thread linked by allroy1975)

Howard, allroy1975 is asking if a key2joy prog could get around this limit by making virtual joysticks from keyboard inputs, or is he stuck with either hacking gamepads or only playing one player from a 2 player CP.


Allroy1975, I agree with howard that it would be very hard, especially with the keyboard inputs.  The keyboard and mouse are pretty much "protected" in windows so that they "always" ( ) work.  Getting at the keyboard inputs and converting to joysticks' inputs will be hampered, to say the least.

Report to moderator   Logged

Robin
http://www.urebelscum.speedhost.com/

allroy1975
Full Member
***

Offline

Posts: 54



I'm a dork!
allroy1975
View Profile | E-Mail
Re:Gamepad Emulator why not?
« Reply #5 on: August 16, 2003, 01:22:56 AM »
Reply with quote

alright, well at least I know now that I'm doing an okay job of describing what I'd like to see. 

Report to moderator   Logged

They have the FAST Ms. Pac-Man!  MOM!  Can I have a quarter!??

Spaced Invader
Full Member
***

Offline

Posts: 150



Resistance is... probably a good idea.

View Profile | E-Mail
Re:Gamepad Emulator why not?
« Reply #6 on: August 16, 2003, 01:26:00 AM »
Reply with quote

Too bad you're not trying to get a joystick to emulate a keyboard...way easier! I know I'm no help... 

Report to moderator   Logged

All Your Base Are Belong To Us!
allroy1975
Full Member
***

Offline

Posts: 54



I'm a dork!
allroy1975
View Profile | E-Mail
Re:Gamepad Emulator why not?
« Reply #7 on: August 18, 2003, 12:24:32 PM »
Reply with quote

this is driving me nuts.
I found some Game Programming irc channel and was asking them about this and they seemed to think it wouldn't be that hard.  Even if it's an external program that simulates gamepad buttons...
No one seemed willing to do it, but they seemed to think it would be hard but not impossible. 
I'm gonna find a good programmer and pay them to write this for me. 

other people are intersted, right?

Report to moderator   Logged

They have the FAST Ms. Pac-Man!  MOM!  Can I have a quarter!??

Inaba
Full Member
***

Offline

Posts: 54



Secret Squirrel

View Profile
Re:Gamepad Emulator why not?
« Reply #8 on: August 18, 2003, 12:54:19 PM »
Reply with quote

Off the top of my head, I don't think this would be too hard.  I've never tried to futz with input from the USB stream, but taking data from the serial or gameport is simple.  It would also be fairly trivial to translate keyboard input into the joypad buffer(s).

If USB is even remotely similar, it wouldn't be hard to write a program to do what you want it to do.  What WOULD be a potential stumbling block is if the program bypasses the Windows API's for the joypad buffers and reads them directly... then any hook/translator you have in the stream would be bypassed as well.  It may work on a game by game basis.

Basically, in short, you'd have to write a joypad driver (simple) that takes input from the keyboard and shoves it into the USB joypad stream. 

Alternately, you could write an IPAC specific driver and have all it' inputs mapped to the joypad stream instead of the keyboard stream.  I wish I was more familiar with USB programming.  Hmm, might be something to look into over the next few months.

Report to moderator   Logged
allroy1975
Full Member
***

Offline

Posts: 54



I'm a dork!
allroy1975
View Profile | E-Mail
Re:Gamepad Emulator why not?
« Reply #9 on: August 18, 2003, 01:01:07 PM »
Reply with quote

well, I use the PS2 Input.  how differen't would that make it?

Man this makes me wish I'd spent more time learing programming and less time ripping mp3s. 

Report to moderator   Logged

They have the FAST Ms. Pac-Man!  MOM!  Can I have a quarter!??

shmokes
Full Member
***

Offline

Posts: 663



It's coming...

View Profile | E-Mail
Re:Gamepad Emulator why not?
« Reply #10 on: August 18, 2003, 01:05:42 PM »
Reply with quote

I'd be super interested, mainly for 2 player Virtua Tennis (and I don't even have a 4 player panel).  I'd just like to play two player on the control panel rather than having one person on the panel and one standing there with a gamepad.

Report to moderator   Logged

"I always keep a supply of liquor handy in case I see a snake, which I also keep handy."  --W.C. Fields

Inaba
Full Member
***

Offline

Posts: 54



Secret Squirrel

View Profile
Re:Gamepad Emulator why not?
« Reply #11 on: August 18, 2003, 01:06:40 PM »
Reply with quote

Would still be fundamentally the same.  The more I think about this though, it might be kind of ugly once finished.  If you set this up like the above, you'd be virtually unable to use your keyboard in Windows, as youre keystrokes would be translated into joypad input... so you'd have to control windows strictly with the mouse while the driver is active.

Not a show-stopper, but would make it a pain to use.

Report to moderator   Logged
allroy1975
Full Member
***

Offline

Posts: 54



I'm a dork!
allroy1975
View Profile | E-Mail
Re:Gamepad Emulator why not?
« Reply #12 on: August 18, 2003, 01:13:18 PM »
Reply with quote

Quote:
If you set this up like the above, you'd be virtually unable to use your keyboard in Windows, as youre keystrokes would be translated into joypad input... so you'd have to control windows strictly with the mouse while the driver is active.


Right, that's why I suggested a seperate executable.  That way you could load it, THEN load the PC game...ie Virtua Tennis and close it when you go back into MAME.

I'm in love with this idea, and if it's possible I REALLY want to do it! 

Report to moderator   Logged

They have the FAST Ms. Pac-Man!  MOM!  Can I have a quarter!??

allroy1975
Full Member
***

Offline

Posts: 54



I'm a dork!
allroy1975
View Profile | E-Mail
Re:Gamepad Emulator why not?
« Reply #13 on: August 18, 2003, 02:56:06 PM »
Reply with quote

does this help at all?
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/intinput/hh/intinput/di_4yuh.asp

Report to moderator   Logged

They have the FAST Ms. Pac-Man!  MOM!  Can I have a quarter!??

grafixmonkey
Full Member
***

Offline

Posts: 390



must... tear self... away from... Tron...
nurbsboy2
View Profile | E-Mail
Re:Gamepad Emulator why not?
« Reply #14 on: August 18, 2003, 06:42:56 PM »
Reply with quote

why not just hack a few USB gamepads, and do what I did with my CP and its standard molex connectors?  i.e. Molex connector pin 7 is "up" for any joystick plugged into it.

Unplug the molex from the ipac, plug it into the gamepad.  Or just leave it in the gamepad, if that still works for mame.

At least, it's probably less effort than writing the program. 

Report to moderator   Logged
TalkingOctopus
Full Member
***

Offline

Posts: 264



ARRR!!!!
TalkingOctopus
View Profile | WWW | E-Mail
Re:Gamepad Emulator why not?
« Reply #15 on: August 18, 2003, 07:20:52 PM »
Reply with quote

But a lot of us allready have working keyboard encoders and want to play 4 player virtua tennis! 

Report to moderator   Logged
allroy1975
Full Member
***

Offline

Posts: 54



I'm a dork!
allroy1975
View Profile | E-Mail
Re:Gamepad Emulator why not?
« Reply #16 on: August 18, 2003, 08:00:01 PM »
Reply with quote

and that's a lot of extra time and $$.  I know the joypad hack could be done, but it'd save a lot of people a lot of time and money if something like my imaginary porogram existed.  I'm thinking about trying to write it, but I'm really not a programmer.  we need to find someone who works for a software development company! 
but I think I'm gonna try it because I'm fairly certain such a program does not exist and I think it should. 

if anyone else wants to do it, or has something like it, or wants to help...let me know.

Matt

« Last Edit: August 18, 2003, 09:12:31 PM by allroy1975 » Report to moderator   Logged

They have the FAST Ms. Pac-Man!  MOM!  Can I have a quarter!??

allroy1975
Full Member
***

Offline

Posts: 54



I'm a dork!
allroy1975
View Profile | E-Mail
Re:Gamepad Emulator why not?
« Reply #17 on: August 20, 2003, 12:47:11 PM »
Reply with quote

Good news for those interested!
a friend of mine that I work with (and he's smart and does some programming) thinks this might be a fun challange.  We downloaded the joy2key source code and he's gonna look at that and see if he can't reverse what it does. 
Hopefully we'll (he'll) be able to make this work. 
anyone willing to help?

Report to moderator   Logged

They have the FAST Ms. Pac-Man!  MOM!  Can I have a quarter!??

JODY
Full Member
***

Offline

Posts: 41



I want my own arcade controls!

View Profile
Re:Gamepad Emulator why not?
« Reply #18 on: August 20, 2003, 09:24:12 PM »
Reply with quote

I'm a C / C++ developer but haven't done any low level Windows keyboard coding.  Have thought about doing some to manipulate keystrokes before they get to Mame but eventually shelled out the bucks for a hardware solution instead.

With proper documentation, preferably some example code that shows how to intercept the keystrokes, etc., I could do some coding.

I'll see if I can look around in the many libraries that are available for Dev-C++ (freeware from Bloodshed Software) and see if I notice anything that would help.

Report to moderator   Logged
allroy1975
Full Member
***

Offline

Posts: 54



I'm a dork!
allroy1975
View Profile | E-Mail
Re:Gamepad Emulator why not?
« Reply #19 on: August 27, 2003, 01:26:06 AM »
Reply with quote

PPJoy

It's a paralell port Joystick driver, but it will also create Virtual Joysticks. 

The developer wrote an demo app in Visual C++ (complete with source code..) that takes Keyboard Data and sends it to the Virtual Joysticks.  It appears that this could be what we're looking for.  I think we just need a good Visual C++ programmer to whip up a nice GUI interface or even just an ini file would be okay by me. 

JODY does this sound like something you'd be able to do?  Take a look at the stuff:

http://www.geocities.com/deonvdw/PPJoy.htm
That's the main page.  if you scroll down on it you'll see a link to IOCTL-based user-mode joystick driver :
http://www.geocities.com/deonvdw/Docs/Diagrams/Virtual/IOCTL.htm

I tested out his Test App while watching the joysticks in the Windows Control Panel and it actually works!

Hopefully there's enough interest in a project like this to make it worth while.

Oh, BTW, my friend at work doesn't seem to think he can do it because he's not real experienced with Visual C++.

Matt

Report to moderator   Logged

They have the FAST Ms. Pac-Man!  MOM!  Can I have a quarter!??

cobelli
Full Member
***

Offline

Posts: 21



I'm a llama!

View Profile | E-Mail
</