LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Games
User Name
Password
Linux - Games This forum is for all discussion relating to gaming in Linux.

Notices


Reply
  Search this Thread
Old 04-08-2019, 09:37 PM   #1
menotu3169
LQ Newbie
 
Registered: Feb 2019
Posts: 6

Rep: Reputation: Disabled
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.

I am using Linux Mint 19(?) on an HP Pavilion G6

Any help would be greatly appreciated!
Thanks
 
Old 04-09-2019, 01:20 PM   #2
freemedia2018
Member
 
Registered: Mar 2019
Distribution: various automated remasters
Posts: 111
Blog Entries: 2

Rep: Reputation: 52
While using Mint:

$ echo -ne "\0270\005\003\063\0333\0315\026\0264\0114\0315\041" > keyrate.com

copy that to your Dosbox folder.

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.
 
Old 04-09-2019, 03:42 PM   #3
menotu3169
LQ Newbie
 
Registered: Feb 2019
Posts: 6

Original Poster
Rep: Reputation: Disabled
where do I find the dosbox folder?
 
Old 04-09-2019, 04:01 PM   #4
freemedia2018
Member
 
Registered: Mar 2019
Distribution: various automated remasters
Posts: 111
Blog Entries: 2

Rep: Reputation: 52
Quote:
Originally Posted by menotu3169 View Post
where do I find the dosbox folder?
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.
 
Old 04-10-2019, 02:29 PM   #5
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: Slackware
Posts: 8,789

Rep: Reputation: 3752Reputation: 3752Reputation: 3752Reputation: 3752Reputation: 3752Reputation: 3752Reputation: 3752Reputation: 3752Reputation: 3752Reputation: 3752Reputation: 3752
Quote:
Originally Posted by freemedia2018 View Post
While using Mint:

$ echo -ne "\0270\005\003\063\0333\0315\026\0264\0114\0315\041" > keyrate.com

copy that to your Dosbox folder.

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:

Code:
MODE CON RATE=32 DELAY=1

Last edited by dugan; 04-10-2019 at 07:52 PM.
 
Old 04-10-2019, 09:08 PM   #6
menotu3169
LQ Newbie
 
Registered: Feb 2019
Posts: 6

Original Poster
Rep: Reputation: Disabled
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
 
Old 04-13-2019, 02:05 PM   #7
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: Slackware
Posts: 8,789

Rep: Reputation: 3752Reputation: 3752Reputation: 3752Reputation: 3752Reputation: 3752Reputation: 3752Reputation: 3752Reputation: 3752Reputation: 3752Reputation: 3752Reputation: 3752
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.

If you have trouble with keyboard input in some Unity games, there is a workaround (updated)
 
Old 04-15-2019, 05:15 PM   #8
menotu3169
LQ Newbie
 
Registered: Feb 2019
Posts: 6

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by dugan View Post
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.

If you have trouble with keyboard input in some Unity games, there is a workaround (updated)
I'm not sure what version I am using, how do I find out?
I installed it using the default "Software Manager" app on Linux Mint 19

But again, I'm seeing the same issue when using the Osmose Sega Master System emulator
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Ubuntu 12.04 computer's arrow keys, page-up and page-down keys suddenly freeze julianvb Linux - Software 7 06-20-2014 06:33 AM
How to simulate arrow keys and key up / key down events to /dev/input phishGuy22 Linux - Software 1 10-17-2012 03:56 PM
holding down left and down arrow does not repeat dave201 Linux - General 1 11-22-2008 04:19 PM
Dosbox - trapped focus in dosbox window. hamster Linux - Software 7 11-11-2007 05:56 PM
Shift-arrow and Alt-arrow keys don't work in xterm Aviv Hurvitz Linux - General 2 09-30-2006 03:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Games

All times are GMT -5. The time now is 12:08 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration