summaryrefslogtreecommitdiffhomepage
path: root/src/input.c
diff options
context:
space:
mode:
authorrealtradam <[email protected]>2023-05-30 04:28:14 -0400
committerrealtradam <[email protected]>2023-05-30 04:28:14 -0400
commit7076731c7f72fc4ea3049626475483e91aa11344 (patch)
tree9bf06aeb6dac4e6c9c24184c246312fc22c95aa1 /src/input.c
parent10828e927120cc83ff25cd6fe7fb2267781a6242 (diff)
downloadTOJam2023-7076731c7f72fc4ea3049626475483e91aa11344.tar.gz
TOJam2023-7076731c7f72fc4ea3049626475483e91aa11344.zip
make input normalized and deltad
Diffstat (limited to 'src/input.c')
-rw-r--r--src/input.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/input.c b/src/input.c
index 5d7571f..ba355fa 100644
--- a/src/input.c
+++ b/src/input.c
@@ -2,6 +2,7 @@
#include "input.h"
#include "rodeo/input.h"
#include "rodeo/audio.h"
+#include "cglm/vec2.h"
scenes_and_commands_t inputs = {0};
@@ -40,10 +41,10 @@ units_move_generic_input(
if(submit_inputs)
{
*move = 0.0f;
- *move += (should_be_positive ? 1 : -1) * (float)*binary_key * 5.0f;
+ *move += (should_be_positive ? 1 : -1) * (float)*binary_key;
*move += (*unbounded_range);
*unbounded_range = 0.0f;
- *move += ((*bounded_range) * 15.0f);
+ *move += ((*bounded_range) * 3);
}
if(input_state != NULL)
{