作者WalkingIce ( 杀手哥吉拉 13)
看板Old-Games
标题[心得] Linux 下 Dosbox 无法按出上下左右键
时间Thu Dec 10 01:35:53 2009
刚刚心血来潮弄了 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
1F:推 xfree86:推,不过slackware下就没这个问题 12/10 20:11