problems with arrow keys /key repeat in Dosbox and emulators
Linux - GamesThis forum is for all discussion relating to gaming in Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
problems with arrow keys /key repeat in Dosbox and emulators
Hello,
recently I installed Dosbox and a few different emulators for some old school gaming, however I'm having issues with key repeat/arrow keys
When I hold down the arrow key, my character takes a single step and then just stays there. In some games, the character keeps taking single steps, but I never actually get the smooth walking that you would expect. I've tried a few different games but they all have the same issue. I get the same issue when typing in some games. It will type a single letter, pause, then another single letter, I don't get the stream of letters you would expect from just holding down the letter key.
I have this issue in Dosbox and Osmose emulator. Keyrepeat seems to work fine in other applications, i.e. if I am scrolling through a webpage with the arrow keys it works fine.
when using dosbox, run it. I got the ASCII codes from an old thread on Yahoo. I don't think 11 ASCII codes are copyrightable. 11 notes in a symphony cover of a song the Rolling Stones got from the Staple Singers, perhaps-- but not 11 ASCII codes that tell DOS to change the key rate.
Sorry, put it in whatever folder you run your games or dos programs from. Just be sure to do it before you run Dosbox. It isn't always up to date on new files that were created while it was running.
when using dosbox, run it. I got the ASCII codes from an old thread on Yahoo. I don't think 11 ASCII codes are copyrightable. 11 notes in a symphony cover of a song the Rolling Stones got from the Staple Singers, perhaps-- but not 11 ASCII codes that tell DOS to change the key rate.
Good luck.
I have never heard of anything like this, and I can't imagine how it could possibly work. Could you please clarify whether you've actually tried it yourself? And how recently? Also: any reference better than "A Yahoo thread that I saved ages ago"?
The standard way of setting the DOS keyboard rate was:
The keyrate program seems to help, but still doesn't really fix the issue.
Now, I get continous walking, but still kinda jerky not the smooth walking that you would get normally
Also while the program helps in Dosbox, it's no use at all for the other emulators(e.g Sega emulator "Osmose")
edit:
I tried the 'mode con . . . ' command in Dosbox, but all it said was "illegal command: mode"
Last edited by menotu3169; 04-10-2019 at 09:10 PM.
Reason: additional info
You're not using my SDL2 fork of DosBox, are you? I just came across a report of a (long-fixed) SDL2 bug with symptoms similar to what you're describing.
You're not using my SDL2 fork of DosBox, are you? I just came across a report of a (long-fixed) SDL2 bug with symptoms similar to what you're describing.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.