Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: how would i do this?  (Read 1310 times)

0 Members and 1 Guest are viewing this topic.

mo1e

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 284
  • Last login:May 28, 2013, 10:07:02 am
  • Do the happy dance
how would i do this?
« on: August 27, 2006, 06:36:33 pm »
hello all ive made a game on my pc that uses the keyboard buttons N, C,A,S,D,M,K, and the arrow keys. and i was wondering if it is possible could i make a controller with a joystick and buttons and hack a kyboard to the correct inputs? or create a arcadecontroll and program the game to use them controls? if so what will i need and how is this achievable. ps i have made a dreamcast controller in the past so im not completely new to this :)

also if i was to do this using a laptop would it be possible to add a credit feature?

thanks all
« Last Edit: August 27, 2006, 06:47:34 pm by mo1e »

SithMaster

  • Lets see how happy you are when you need to use a lawn mower and it keeps turning off when you want to cut up zombies.
  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1781
  • Last login:January 12, 2014, 03:52:59 pm
  • The brightest light casts the darkest shadow.
Re: how would i do this?
« Reply #1 on: August 27, 2006, 06:54:16 pm »
using mame right?

just press tab and find the player one coin input and choose a button.

if your going to hack a keyboard your going to need to find which buttons do not block or ghost each other.  to find an indepth guide look here http://www.mameworld.net/emuadvice/keyhack2.html

but most likely youd have to change the inputs (not 100% sure but a possibility of it).  or you can use an encoder from keywiz.

i never opened a laptop but im guessing it also uses a similar encoder for the keyboard.
Back in MY day we lived on the moon and we had to build a rocket ship from scratch to get to the Earth before we suffocated.

mo1e

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 284
  • Last login:May 28, 2013, 10:07:02 am
  • Do the happy dance
Re: how would i do this?
« Reply #2 on: August 27, 2006, 06:56:43 pm »
ok well in that case would it be possible to create a control panel for the laptops usb?. and no i wont be using mame. just running the .exe for the game i made on my laptop. although i mite add a few emulators later on :D

SithMaster

  • Lets see how happy you are when you need to use a lawn mower and it keeps turning off when you want to cut up zombies.
  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1781
  • Last login:January 12, 2014, 03:52:59 pm
  • The brightest light casts the darkest shadow.
Re: how would i do this?
« Reply #3 on: August 27, 2006, 10:28:59 pm »
yes but you cant use a keyboard hack with a usb.  usb has i think a hardware limit preventing more than 4? keypresses.  im not 100% but i think its along these lines.

best bet for usb would be to use a keywiz or similiar.  they will let you use your current input config(s) and work with usb if you get the model for them.
Back in MY day we lived on the moon and we had to build a rocket ship from scratch to get to the Earth before we suffocated.

NickG

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 586
  • Last login:September 26, 2022, 05:25:23 am
  • Dig.
    • My Projects Page
Re: how would i do this?
« Reply #4 on: August 28, 2006, 06:38:43 am »
You could probably code the controls using direct input api or something similar to joytokey, then use a usb controller/hack.

yalborap

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 148
  • Last login:November 05, 2015, 03:19:12 am
Re: how would i do this?
« Reply #5 on: August 28, 2006, 07:45:46 am »
You could probably code the controls using direct input api or something similar to joytokey, then use a usb controller/hack.

Joytokey and a USB gamepad would be the best option.

If I were you, I'd get a good dual analogue pad. Wire the buttons and dpad up to the joystick and arcade buttons, then keep the analog sticks and install them somewhere in the panel for things like mouse emulation or flight stick emulation. That way you keep your options open.

mo1e

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 284
  • Last login:May 28, 2013, 10:07:02 am
  • Do the happy dance
Re: how would i do this?
« Reply #6 on: August 28, 2006, 07:53:14 am »
ok i have a pc usb dual analogue controller. would i be able to just rewire the control buttons to my control panel and use it instead of the controller? like i did with the dreamcast

NickG

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 586
  • Last login:September 26, 2022, 05:25:23 am
  • Dig.
    • My Projects Page
Re: how would i do this?
« Reply #7 on: August 28, 2006, 09:23:42 am »
Yes, that should do it.