From 29afe683c340fef09d6014895323b199383d623a Mon Sep 17 00:00:00 2001 From: ? Date: Mon, 25 Feb 2019 18:23:55 +0100 Subject: [PATCH] better keyboard panning --- shmup.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shmup.cpp b/shmup.cpp index da44c799..6f646864 100644 --- a/shmup.cpp +++ b/shmup.cpp @@ -750,7 +750,7 @@ void handleInput(int delta) { if(DIM == 2) View = xpush(-panx * d) * ypush(-pany * d) * spin(panspin * d) * View; else - View = cspin(0, 2, panx) * cspin(0, 1, pany) * spin(panspin * d) * cpush(2, panmove) * View; + View = cspin(0, 2, panx/10) * cspin(0, 1, pany/10) * spin(panspin * d) * cpush(2, panmove/10) * View; playermoved = false; } #endif