summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorilotterytea <iltsu@alright.party>2025-01-26 20:15:10 +0500
committerilotterytea <iltsu@alright.party>2025-01-26 20:15:10 +0500
commit49051c9b98b2d19ed5b61a874394904e0ba086ab (patch)
treee329ae22fbced371478d8bdf79c7567654bb71c9 /src/main.c
parentd6b054ba7a53787bc9c143007176d26bc491c72b (diff)
upd: move the camera on middle button click
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 23fa050..cc9c25e 100644
--- a/src/main.c
+++ b/src/main.c
@@ -51,7 +51,7 @@ int main() {
camera.zoom = 4.0f;
}
- if (IsMouseButtonDown(MOUSE_BUTTON_RIGHT)) {
+ if (IsMouseButtonDown(MOUSE_BUTTON_MIDDLE)) {
Vector2 mousePos = GetMouseDelta();
camera.target.x -= mousePos.x / 5.0f;
camera.target.y -= mousePos.y / 5.0f;