浏览代码

Enable key repeats. Useful for the map selection screen.

Frank Zago 16 年之前
父节点
当前提交
566a99932b
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      client/CMT.cpp

+ 2 - 0
client/CMT.cpp

@@ -153,6 +153,8 @@ int main(int argc, char** argv)
 		tlog0<<"Initialization CPreGame (together): "<<tmh.getDif()<<std::endl;
 		tlog0<<"Initialization of VCMI (together): "<<total.getDif()<<std::endl;
 
+		SDL_EnableKeyRepeat(SDL_DEFAULT_REPEAT_DELAY, SDL_DEFAULT_REPEAT_INTERVAL);
+
 		cgi->musich->playMusic(musicBase::mainMenu, -1);
 		StartInfo *options = new StartInfo(cpg->runLoop());