Avoid warning about unused variable on non-OSX platforms

This commit is contained in:
David Capello 2015-10-19 16:41:41 -03:00
parent 3dce633bf6
commit 76e7d15484

View File

@ -193,9 +193,9 @@ protected:
case kKeyDownMessage: {
KeyMessage* keyMsg = static_cast<KeyMessage*>(msg);
KeyScancode scancode = keyMsg->scancode();
int unicode = keyMsg->unicodeChar();
#ifdef __APPLE__
int unicode = keyMsg->unicodeChar();
bool up = (msg->cmdPressed() && scancode == kKeyUp);
bool enter = (msg->cmdPressed() && scancode == kKeyDown);
bool back = (msg->cmdPressed() && msg->shiftPressed() && unicode == '[');