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

@ -939,19 +939,19 @@ public:
{
switch (keyCode)
{
case 0x6B:
case KEY_KPADD:
case GAMEPAD_BUTTON_R1:
changeTessellationFactor(0.05f);
break;
case 0x6D:
case KEY_KPSUB:
case GAMEPAD_BUTTON_L1:
changeTessellationFactor(-0.05f);
break;
case 0x46:
case KEY_F:
case GAMEPAD_BUTTON_A:
toggleWireframe();
break;
case 0x54:
case KEY_T:
case GAMEPAD_BUTTON_X:
toggleTessellation();
break;
@ -1038,4 +1038,4 @@ int main(const int argc, const char *argv[])
#if !defined(__ANDROID__)
return 0;
#endif
}
}