Use keycodes intead of hardcoded values

Signed-off-by: Laurent Carlier <lordheavym@gmail.com>
This commit is contained in:
Laurent Carlier 2016-08-11 13:15:49 +02:00
parent 92089fc98a
commit 6b259a22e8
20 changed files with 69 additions and 69 deletions

View file

@ -1019,11 +1019,11 @@ public:
{
switch (keyCode)
{
case 0x53:
case KEY_S:
case GAMEPAD_BUTTON_A:
toggleShadowMapDisplay();
break;
case 0x4C:
case KEY_L:
case GAMEPAD_BUTTON_X:
toogleLightPOV();
break;
@ -1102,4 +1102,4 @@ int main(const int argc, const char *argv[])
#if !defined(__ANDROID__)
return 0;
#endif
}
}