1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2026-05-08 16:12:06 +00:00

touch_sensitivity option

This commit is contained in:
Zeno Rogue
2026-04-25 02:43:59 +02:00
parent 9cda82afda
commit 1f4c881c40
4 changed files with 22 additions and 5 deletions
+3
View File
@@ -2505,9 +2505,12 @@ EX void resetview() {
EX void panning(shiftpoint hf0, shiftpoint ht0) {
hyperpoint hf = hf0.h;
hyperpoint ht = unshift(ht0, hf0.shift);
ld d = hdist(hf, ht);
if(drag_sensitivity && d < 1/drag_sensitivity && drag_distance == 0) return;
View =
rgpushxto0(hf) * rgpushxto0(gpushxto0(hf) * ht) * gpushxto0(hf) * View;
playermoved = false; currently_scrolling = true;
drag_distance += d;
}
EX int cells_drawn, cells_generated;