Compare commits

..

No commits in common. "7ed151edd1dc68b695e3f85fb584832b1f724422" and "1ff0daba4a63434832449a6355c9dca3ddf4fcf0" have entirely different histories.

2 changed files with 1 additions and 12 deletions

2
External/tely vendored

@ -1 +1 @@
Subproject commit a3816ec63e2a930c067d2598e6c2f96815a4294c
Subproject commit e245208bc9b7140eb668cd2caef80c40b2b50836

View File

@ -629,8 +629,6 @@ void FP_Update(TELY_Platform *platform, FP_Game *game, TELY_Renderer *renderer,
game->clicked_entity = game->prev_active_entity;
Dqn_V2 dir_vector = {};
// NOTE: Keyboard movement input
if (TELY_Platform_InputScanCodeIsDown(input, TELY_PlatformInputScanCode_W))
dir_vector.y = -1.f;
if (TELY_Platform_InputScanCodeIsDown(input, TELY_PlatformInputScanCode_A))
@ -640,15 +638,6 @@ void FP_Update(TELY_Platform *platform, FP_Game *game, TELY_Renderer *renderer,
if (TELY_Platform_InputScanCodeIsDown(input, TELY_PlatformInputScanCode_D))
dir_vector.x = +1.f;
// NOTE: Gamepad movement input
for (uint32_t gamepad = 0; gamepad < MAX_GAMEPADS; gamepad++) {
if (input->button_codes[gamepad]) {
dir_vector.x += input->left_stick[gamepad].x;
dir_vector.y += input->left_stick[gamepad].y;
}
}
if (dir_vector.x && dir_vector.y) {
dir_vector.x *= 0.7071067811865475244f;
dir_vector.y *= 0.7071067811865475244f;