- bugfix for mouse click offset issue (had to do with Renderer::maxLightDist value)

- bugfix for holding Ctrl key to queu commands
This commit is contained in:
Mark Vejvoda 2010-07-15 07:33:49 +00:00
parent da788d1bce
commit 4582214815
2 changed files with 17 additions and 2 deletions

View File

@ -148,8 +148,8 @@ const Vec4f Renderer::defDiffuseColor= Vec4f(1.f, 1.f, 1.f, 1.f);
const Vec4f Renderer::defAmbientColor= Vec4f(1.f * ambFactor, 1.f * ambFactor, 1.f * ambFactor, 1.f);
const Vec4f Renderer::defColor= Vec4f(1.f, 1.f, 1.f, 1.f);
const float Renderer::maxLightDist= 100.f;
//const float Renderer::maxLightDist= 1000.f;
//const float Renderer::maxLightDist= 100.f;
const float Renderer::maxLightDist= 1000.f;
// ==================== constructor and destructor ====================

View File

@ -662,6 +662,21 @@ char Window::getKey(SDL_keysym keysym,bool skipSpecialKeys) {
}
if(c == 0) {
SystemFlags::OutputDebug(SystemFlags::debugSystem,"In [%s::%s Line: %d]\n",__FILE__,__FUNCTION__,__LINE__);
if(skipSpecialKeys == false) {
switch(keysym.sym) {
case SDLK_LALT:
case SDLK_RALT:
return vkAlt;
case SDLK_LCTRL:
case SDLK_RCTRL:
return vkControl;
case SDLK_LSHIFT:
case SDLK_RSHIFT:
return vkShift;
}
}
c = keysym.sym;
}