1
0
Fork 0

Modify keyboard input behavior

This commit is contained in:
Austin Morlan 2018-09-06 19:54:46 -07:00
parent 8ede3f1952
commit d0041c77c4
Signed by: austin
GPG Key ID: FD6B27654AF5E348
1 changed files with 16 additions and 16 deletions

View File

@ -139,35 +139,35 @@ static void HandleEvent(
} break;
case SDLK_q:
{
SET_BIT(platform.input, TRANSLATE_Y_NEG);
SET_BIT(platform.input, TRANSLATE_Y_POS);
} break;
case SDLK_e:
{
SET_BIT(platform.input, TRANSLATE_Y_POS);
SET_BIT(platform.input, TRANSLATE_Y_NEG);
} break;
case SDLK_i:
{
SET_BIT(platform.input, ROTATE_Z_POS);
SET_BIT(platform.input, ROTATE_X_POS);
} break;
case SDLK_k:
{
SET_BIT(platform.input, ROTATE_Z_NEG);
SET_BIT(platform.input, ROTATE_X_NEG);
} break;
case SDLK_j:
{
SET_BIT(platform.input, ROTATE_X_NEG);
SET_BIT(platform.input, ROTATE_Z_POS);
} break;
case SDLK_l:
{
SET_BIT(platform.input, ROTATE_X_POS);
SET_BIT(platform.input, ROTATE_Z_NEG);
} break;
case SDLK_u:
{
SET_BIT(platform.input, ROTATE_Y_NEG);
SET_BIT(platform.input, ROTATE_Y_POS);
} break;
case SDLK_o:
{
SET_BIT(platform.input, ROTATE_Y_POS);
SET_BIT(platform.input, ROTATE_Y_NEG);
} break;
case SDLK_UP:
{
@ -201,35 +201,35 @@ static void HandleEvent(
} break;
case SDLK_q:
{
CLEAR_BIT(platform.input, TRANSLATE_Y_NEG);
CLEAR_BIT(platform.input, TRANSLATE_Y_POS);
} break;
case SDLK_e:
{
CLEAR_BIT(platform.input, TRANSLATE_Y_POS);
CLEAR_BIT(platform.input, TRANSLATE_Y_NEG);
} break;
case SDLK_i:
{
CLEAR_BIT(platform.input, ROTATE_Z_POS);
CLEAR_BIT(platform.input, ROTATE_X_POS);
} break;
case SDLK_k:
{
CLEAR_BIT(platform.input, ROTATE_Z_NEG);
CLEAR_BIT(platform.input, ROTATE_X_NEG);
} break;
case SDLK_j:
{
CLEAR_BIT(platform.input, ROTATE_X_NEG);
CLEAR_BIT(platform.input, ROTATE_Z_POS);
} break;
case SDLK_l:
{
CLEAR_BIT(platform.input, ROTATE_X_POS);
CLEAR_BIT(platform.input, ROTATE_Z_NEG);
} break;
case SDLK_u:
{
CLEAR_BIT(platform.input, ROTATE_Y_NEG);
CLEAR_BIT(platform.input, ROTATE_Y_POS);
} break;
case SDLK_o:
{
CLEAR_BIT(platform.input, ROTATE_Y_POS);
CLEAR_BIT(platform.input, ROTATE_Y_NEG);
} break;
case SDLK_UP:
{