doodle/pkg/uix
Noah Petherbridge a24c94a161 Multitouch Level Panning
Add multi-touch gesture support so that the player can scroll the level
in the editor (and title screen) by treating a two finger swipe to be
equivalent to a middle click drag.

Fun quirks found with SDL2's MultiGestureEvent:

* They don't begin sending us the event until motion is detected after
  two fingers have touched the screen; not the moment the second finger
  touches it.
* It spams us with events when it detects any tiny change and a lot of
  cool details like rotate/pinch deltas, but it never tells us when the
  multitouch STOPS! The game has to block left clicks while multitouch
  happens so the user doesn't draw all over their level, so it needs to
  know when touch has ended.
* The workaround is to track the mouse cursor position at the first
  touch and each delta thereafter; if the deltas stop changing tick to
  tick, unset the "is touching" variable.
2021-10-06 20:02:09 -07:00
..
actor_animation.go Overhaul the Platformer Physics System 2020-04-04 21:00:32 -07:00
actor_collision.go Thief and Inventory APIs 2021-08-09 22:42:22 -07:00
actor_events.go Doodads: Use Key and Working Warp Doors 2021-01-03 15:19:21 -08:00
actor.go First-class Doodad Hitboxes + Generic Item Script 2021-09-03 20:39:44 -07:00
canvas_actors.go Add Technical Doodads + UI Fixes 2021-10-02 20:52:16 -07:00
canvas_cursor.go Change types int32 -> int per upstream render and ui library 2019-12-27 19:16:34 -08:00
canvas_editable.go Zoom Improvements 2021-09-12 15:27:37 -07:00
canvas_link_tool.go Doodads: Use Key and Working Warp Doors 2021-01-03 15:19:21 -08:00
canvas_present.go Zoom: Fix scrolling into negative coordinates 2021-09-12 15:47:16 -07:00
canvas_scrolling.go Multitouch Level Panning 2021-10-06 20:02:09 -07:00
canvas_strokes.go Zoom Improvements 2021-09-12 15:27:37 -07:00
canvas_wallpaper.go Stabilize Load Screen by Deferring SDL2 Calls 2021-07-19 17:14:00 -07:00
canvas_zoom.go Zoom And Edit 2021-09-11 17:02:01 -07:00
canvas.go Multitouch Level Panning 2021-10-06 20:02:09 -07:00
scripting.go Add Technical Doodads + UI Fixes 2021-10-02 20:52:16 -07:00