+ -
当前位置:首页 → 问答吧 → 游戏手柄模拟鼠标键盘

游戏手柄模拟鼠标键盘

时间:2009-01-26

来源:互联网

qjoypad 最新版3.4.1
优点:
1。比鼠标按键多
2。不要求一个平整的平面作为鼠标垫
3。配置比较简单

已知问题:
会卡住,解决办法是模拟鼠标滚动,上下滚动一下就不卡了,再卡住再滚动一下。


cpu占用100%问题,解决办法:修改loop.cpp文件,将usleep(1)改为usleep(10000)
代码:
--- loop.cpp.orig 2007-10-07 13:32:01.000000000 +0200
+++ loop.cpp 2007-10-07 12:16:13.000000000 +0200
@@ -31,7 +31,7 @@
 
 //sleep for a moment. This is just to keep us from throwing all the
 //available processer power into madly checking for new events.
- usleep(1);
+ usleep(10000);
 
 //now we can let QT process all of its events, like GUI events and timers.
 return QEventLoop::processEvents(AllEvents);
摘自
http://www.azriek.fr/index.php?post/...tion-CPU-a-100

作者: qwerqwer   发布时间: 2009-01-26

热门下载

更多