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 do I limit keystrokes sent?  (Read 1750 times)

0 Members and 1 Guest are viewing this topic.

KonkeyKong

  • Trade Count: (+5)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 228
  • Last login:October 10, 2021, 09:57:07 pm
  • Monkey is my business and business is good.
How do I limit keystrokes sent?
« on: February 23, 2010, 05:19:08 pm »
Old Mac arcader...switched over to the Windows side out of necessity, still kinda' ignorant.  Wondering if there is software that limits a keystroke to just one send even if the button is held down continually.  Would like to incorporate this with my Atari four position shifter.  Each "gear" has it's own microswitch that gets held down when actuated.  I'm thinking if there was a way to send only one keystroke when the switch is activated, this would circumvent the whole mame shift issue.  I could assign the same keystroke to two switches in a low-hi gear set-up.  Ooo, also any recommendations for keystroke re-assigning programs?  Possibly one that would cover both aspects?

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19428
  • Last login:Yesterday at 11:52:51 pm
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re: How do I limit keystrokes sent?
« Reply #1 on: February 26, 2010, 04:26:36 pm »
You need to alter the repeate rate in the keyboard settings.  It's different for each version of windows and buried pretty deep.  BUT.... keep in mind that neither mame, nor any other game for that matter, worries about repeating keys.  Games use directinput, or something similar that ignores repeat rates.  Just because it repeates in notepad, doesn't mean it will in your game. 

You've told us nothing about the keybaord interface you are using to hook up your controls, so the rest of the questions can't be answered. 

I will reccommend AGAINST hacking a keyboard though.  Back in the day it was the thing to do because encoders were non-existant and/or expensive, joystick support was non-standardized and keyboards were built like a tank (in other words a REAL circuit board in the keyboard.) Now days this simply isn't the case.  Just buy a keyboard encoder for 20 bucks or so and save yourself a headache. 

Also I'm not sure why you are hung-up on re-assigning keystrokes.  Mame and virtually every emulator/game out there allows you to remap keys... there's no reason to do it on the hardware end.  But if you do wish to do it on the hardware end, most of your keybaord encoders support this anyway.

KonkeyKong

  • Trade Count: (+5)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 228
  • Last login:October 10, 2021, 09:57:07 pm
  • Monkey is my business and business is good.
Re: How do I limit keystrokes sent?
« Reply #2 on: February 26, 2010, 08:52:15 pm »
I 've got an AKI interface.  With the shifter...when you shift gears, it continually holds the microswitch down.  I'm thinking this will send repeated signals, or... will it only send once?

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19428
  • Last login:Yesterday at 11:52:51 pm
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re: How do I limit keystrokes sent?
« Reply #3 on: March 01, 2010, 11:18:00 pm »
within mame and any direct-input enabled game/emulator (read ALL of them) no it won't repeat.  That's just how video games work on the pc... the repeate-rate is a software thing, not a hardware one.  Now on poorly written homebrew or the desktop, yeah it could repeat.  I've barely even heard of the aki, but if it's specifically made for mame cab guys then you shouldn't run into any issues.