summaryrefslogtreecommitdiffhomepage
path: root/src/input.c
diff options
context:
space:
mode:
authorrealtradam <[email protected]>2024-05-13 13:55:22 -0400
committerrealtradam <[email protected]>2024-05-13 13:55:22 -0400
commit21ab7c1df0b8a0fcbb1d10ed2e61410d7f7021e0 (patch)
treee01ef4477c858cb5259ff8e7d27f18e25f48f9ac /src/input.c
parent7d60cbc38bc94baed87932639d90fe1d7e8a99d7 (diff)
downloadtojam2024-master.tar.gz
tojam2024-master.zip
update web controlsHEADmaster
Diffstat (limited to 'src/input.c')
-rw-r--r--src/input.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/input.c b/src/input.c
index f1c5280..955b2b4 100644
--- a/src/input.c
+++ b/src/input.c
@@ -21,10 +21,10 @@ void updateController()
static int previous_x_p2 = 0;
static int previous_y_p2 = 0;
- pressed_p1.z = IsKeyPressed(KEY_V);
+ pressed_p1.z = IsKeyPressed(KEY_E);
pressed_p1.r = IsKeyPressed(KEY_Q);
- pressed_p2.z = IsKeyPressed(KEY_K);
- pressed_p2.r = IsKeyPressed(KEY_L);
+ pressed_p2.z = IsKeyPressed(KEY_O);
+ pressed_p2.r = IsKeyPressed(KEY_U);
static int turn_speed = 5;
@@ -70,7 +70,7 @@ void updateController()
previous_x_p1 *= 2.0f/3.0f;
}
- if(IsKeyDown(KEY_UP))
+ if(IsKeyDown(KEY_I))
{
previous_y_p2 += turn_speed;
if(previous_y_p2 > 100)
@@ -78,7 +78,7 @@ void updateController()
previous_y_p2 = 100;
}
}
- if(IsKeyDown(KEY_LEFT))
+ if(IsKeyDown(KEY_J))
{
previous_x_p2 -= turn_speed;
if(previous_x_p2 < -100)
@@ -86,7 +86,7 @@ void updateController()
previous_x_p2 = -100;
}
}
- if(IsKeyDown(KEY_DOWN))
+ if(IsKeyDown(KEY_K))
{
previous_y_p2 -= turn_speed;
if(previous_y_p2 < -100)
@@ -94,7 +94,7 @@ void updateController()
previous_y_p2 = -100;
}
}
- if(IsKeyDown(KEY_RIGHT))
+ if(IsKeyDown(KEY_L))
{
previous_x_p2 += turn_speed;
if(previous_x_p2 > 100)
@@ -103,11 +103,11 @@ void updateController()
}
}
- if(!IsKeyDown(KEY_UP) && !IsKeyDown(KEY_DOWN))
+ if(!IsKeyDown(KEY_I) && !IsKeyDown(KEY_K))
{
previous_y_p2 *= 2.0f/3.0f;
}
- if(!IsKeyDown(KEY_LEFT) && !IsKeyDown(KEY_RIGHT))
+ if(!IsKeyDown(KEY_J) && !IsKeyDown(KEY_L))
{
previous_x_p2 *= 2.0f/3.0f;
}