mirror of
https://github.com/glest/glest-source.git
synced 2025-08-21 15:41:24 +02:00
- try this tomreyn
This commit is contained in:
@@ -18,7 +18,7 @@
|
|||||||
#include "menu_state_options.h"
|
#include "menu_state_options.h"
|
||||||
#include "menu_state_root.h"
|
#include "menu_state_root.h"
|
||||||
#include "metrics.h"
|
#include "metrics.h"
|
||||||
|
#include "string_utils.h"
|
||||||
#include "leak_dumper.h"
|
#include "leak_dumper.h"
|
||||||
|
|
||||||
namespace Glest{ namespace Game{
|
namespace Glest{ namespace Game{
|
||||||
@@ -368,9 +368,13 @@ void MenuStateKeysetup::keyDown(SDL_KeyboardEvent key) {
|
|||||||
// }
|
// }
|
||||||
|
|
||||||
char szBuf[1024] = "";
|
char szBuf[1024] = "";
|
||||||
//sprintf(szBuf,"%s [%d][%d]",keyName.c_str(),key.keysym.sym,keysym);
|
|
||||||
sprintf(szBuf,"%s [%c][%d][%d][%d]",keyName.c_str(),hotkeyChar,key.keysym.sym,hotkeyChar,key.keysym.unicode);
|
sprintf(szBuf,"%s [%c][%d][%d][%d]",keyName.c_str(),hotkeyChar,key.keysym.sym,hotkeyChar,key.keysym.unicode);
|
||||||
labelTestValue.setText(szBuf);
|
|
||||||
|
//sprintf(szBuf,"%s [%d][%d]",keyName.c_str(),key.keysym.sym,keysym);
|
||||||
|
char *utfStr = String::ConvertToUTF8(&szBuf[0]);
|
||||||
|
|
||||||
|
labelTestValue.setText(utfStr);
|
||||||
|
delete [] utfStr;
|
||||||
|
|
||||||
if(SystemFlags::VERBOSE_MODE_ENABLED) printf("In [%s::%s Line: %d] hotkeyChar [%d]\n",__FILE__,__FUNCTION__,__LINE__,hotkeyChar);
|
if(SystemFlags::VERBOSE_MODE_ENABLED) printf("In [%s::%s Line: %d] hotkeyChar [%d]\n",__FILE__,__FUNCTION__,__LINE__,hotkeyChar);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user