[心得] Linux 下 Dosbox 無法按出上下左右鍵

看板Old-Games作者 ( 殺手哥吉拉 13)時間14年前 (2009/12/10 01:35), 編輯推噓1(100)
留言1則, 1人參與, 最新討論串1/1
剛剛心血來潮弄了 dosbox 跟金庸鄉民版來玩 發現上下左右鍵在 dosbox 裡面失效 稍微查了一下找到一個 work around,貼上來給需要的人看看 http://ubuntuforums.org/showpost.php?p=6724643&postcount=3 If you are running DOSBox on Ubuntu 8.10 (or some other distro that uses the evdev driver in X) you will notice that some keys don't work, most noticiable the arrow keys. This is because Ubuntu changed something related to the scancodes, we are working on it, but as none of us runs Ubuntu 8.10 it is not top priority. If you have an English/American keyboard layout then (and only then!) you can use the following workaround. Open a console and enter the following command: echo -e "[sdl]\nusescancodes=false\n" >>~/.dosboxrc We will have it fixed in the next version though. 主要是說 Ubuntu 在 8.10 以後的版本,因為改了 scancode 因此 dosbox 無法辨認 但是團隊裡面沒有人用 Ubuntu 8.10,所以這個問題的優先權沒那麼高 利用這個方法可以避開問題 $echo -e "[sdl]\nusescancodes=false\n" >>~/.dosboxrc 其實就是在家目錄底下的 .dosboxrc 增加這兩行 [sdl] usescancodes=false 剛剛試了一下的確可以動 -- 隨手關電腦,救救北極熊 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 61.57.131.211

12/10 20:11, , 1F
推,不過slackware下就沒這個問題
12/10 20:11, 1F
文章代碼(AID): #1B7z_zbL (Old-Games)