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: Key repeat  (Read 5112 times)

0 Members and 1 Guest are viewing this topic.

eightbit

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1849
  • Last login:September 07, 2019, 07:38:11 pm
  • My cab is never done...
Key repeat
« on: January 20, 2003, 01:32:16 pm »
A theory came up last night in chat that key repeat needs to be disabled for mame to function properly. Does any one know if it is a recent event in Mame for this not be true? I have scoured the mame documentation and can't find this mentioned. In my play testing it functions as I would expect it to with out turning it off in Windows. Mame must be coded to deal with this. Turning off key repeat in Dos would have to be done at a bios level.

Its actually a nice feature to have in the front end to be able to scroll the list by holding the joystick or by holding a page up\down button.
My statements are my own opinions. They have the value that the reader gives them. My opinion of my opinion varies between foolish and brilliant and these opinions often change with new information.

rampy

  • *shrug*
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2910
  • Last login:March 02, 2007, 11:32:16 am
  • ...as useless as a JPG is to Helen Keller
    • Build Your Own PVR
Re:Key repeat
« Reply #1 on: January 20, 2003, 02:13:08 pm »
A theory came up last night in chat that key repeat needs to be disabled for mame to function properly. Does any one know if it is a recent event in Mame for this not be true? I have scoured the mame documentation and can't find this mentioned. In my play testing it functions as I would expect it to with out turning it off in Windows. Mame must be coded to deal with this. Turning off key repeat in Dos would have to be done at a bios level.

Its actually a nice feature to have in the front end to be able to scroll the list by holding the joystick or by holding a page up\down button.

that is an interesting theory, have you posted it into the mame.net forum? (probably get flamed or incoherent answers, but ...)

rampy

Silverwind

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 807
  • Last login:September 26, 2022, 12:49:09 am
Re:Key repeat
« Reply #2 on: January 20, 2003, 02:26:24 pm »
Playing "double dragon" on my keyboard (haven't hooked up the keys yet) I noticed that holding down the left or right arrow for prolonged amounts of time will cause a "headbutt" when not intended to be executed...

not sure how the I-PAC will respond.. but keyboard responds in this manner.. (under windows)

DeathMonk

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 362
  • Last login:April 03, 2015, 02:01:12 pm
    • MameStation.3
Re:Key repeat
« Reply #3 on: January 20, 2003, 02:30:27 pm »
With my I-PAC I haven't noticed any problems... yet.


Now with cup beer holders!

eightbit

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1849
  • Last login:September 07, 2019, 07:38:11 pm
  • My cab is never done...
Re:Key repeat
« Reply #4 on: January 20, 2003, 02:33:52 pm »
With my I-PAC I haven't noticed any problems... yet.
The reason that this came up is because the Ipac has key repeat deliberately disabled. My question is, is it necessary to disable key repeat?
My statements are my own opinions. They have the value that the reader gives them. My opinion of my opinion varies between foolish and brilliant and these opinions often change with new information.

DeathMonk

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 362
  • Last login:April 03, 2015, 02:01:12 pm
    • MameStation.3
Re:Key repeat
« Reply #5 on: January 20, 2003, 03:00:22 pm »
OIC...  Well, if your using windows xp, there's that sticky keys thing where it will pop up if the key is repeated... Then games like shooters (for example) that use a weapons charge wouldnt work..  Other than that, I don't see why it would matter.


Now with cup beer holders!

eightbit

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1849
  • Last login:September 07, 2019, 07:38:11 pm
  • My cab is never done...
Re:Key repeat
« Reply #6 on: January 20, 2003, 05:05:26 pm »
OIC...  Well, if your using windows xp, there's that sticky keys thing where it will pop up if the key is repeated... Then games like shooters (for example) that use a weapons charge wouldnt work..  Other than that, I don't see why it would matter.
But thats my point, the games where weapons charge do work with a keyboard without disabling the key repeat. Also games where you through a punch or a single shot don't repeat throwing punches when you hold the key. Other games that shoot as long as you hold the button also work like they are supposed to. Sticky key by default is mapped to shift and I don't remember seeing anyone using the shift button as a mame input.

You have to watch out for things like sticky key and windows key combinations like alt-tab and ctrl-esc but thats a different issue.
My statements are my own opinions. They have the value that the reader gives them. My opinion of my opinion varies between foolish and brilliant and these opinions often change with new information.

Darkstalker

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 356
  • Last login:June 27, 2010, 12:55:36 am
  • A legend in my spare time...
Re:Key repeat
« Reply #7 on: January 20, 2003, 05:48:35 pm »
I haven't seen any repeat problems in MAME yet.  Games like the Megaman fighter where you can charge the gun by holding down the shoot button work just fine with repeat enabled.
Still in the collecting parts and ideas phase of cabinet building.

SirPoonga

  • Puck'em Up
  • Global Moderator
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 8188
  • Last login:July 20, 2025, 03:37:24 pm
  • The Bears Still Suck!
Re:Key repeat
« Reply #8 on: January 20, 2003, 06:16:42 pm »
See, I think people might be misunderstanding key repeat.  As I understand, not sure if I am correct, what key repeat is is the longer you hold down a button you get the character of that key repeated, not the keystroke.  I think mame uses the keystroke, not key input?  Would I be correct in that?

RandyT

  • Trade Count: (+14)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 7014
  • Last login:July 28, 2025, 12:11:17 pm
  • Friends don't let friends hack keyboards.
    • GroovyGameGear.com
Re:Key repeat
« Reply #9 on: January 20, 2003, 07:03:01 pm »
See, I think people might be misunderstanding key repeat.  As I understand, not sure if I am correct, what key repeat is is the longer you hold down a button you get the character of that key repeated, not the keystroke.  I think mame uses the keystroke, not key input?  Would I be correct in that?


I can't speak for the MAME guys, but keyrepeat does the following:

[KEYMAKE]{typematic delay} [KEYMAKE]{typematic delay}[KEYMAKE]{typematic delay}[KEYMAKE]{typematic delay}[KEYBREAK]

This means that your keyboard generates a "key down", waits for a time period based on the typematic delay, then continues to generate key downs at the same intervals until you release the key.  At that time, a "key up" is generated.

Unless MAME is turning off key repeat, which is entirely possible as it is controlled by the PC, it would have to keep a temporary record of keys that have been pressed and only act on those keys in the event of a release.

At least that's how I would have done it  ;D

RandyT