doodle/pkg/uix
Noah 5b3121171e Fix touchscreen mode detection
* Touchscreen mode used to be detected based on SDL2 GetNumTouchDevices
  but on a Macbook, the trackpad registers as a touch device - worse,
  GetNumTouchDevices will only start returning 1 the first time some
  devices are touched.
* The result was that on macOS the custom mouse cursor was drawn by
  default, but on the first trackpad touch, would disappear in favor of
  assuming the game is running on a touch screen device (which is not
  the case).
* New method: the render engine has an IsFingerDown boolean which will
  be true as long as at least one finger has registered a FingerDown
  event, but not yet a FingerUp event.
* So as long as one finger is down, the mouse cursor can disappear and
  then it comes back on release. This isn't perfectly ideal for pure
  touch devices (ideally the cursor remains hidden until a mouse
  movement without touch occurs).
2024-04-19 22:01:33 -07:00
..
magic-form ListBoxes Overhaul 2023-04-08 21:26:08 -07:00
actor.go Coyote time 2024-02-06 20:56:07 -08:00
actor_animation.go Rename Go module 2022-09-24 15:17:25 -07:00
actor_collision.go Tweak gravity and player physics 2024-02-06 19:04:47 -08:00
actor_events.go Doodads: Use Key and Working Warp Doors 2021-01-03 15:19:21 -08:00
canvas.go Update savegame format, Allow out-of-bounds camera 2023-03-07 21:55:10 -08:00
canvas_actors.go Resolve circular import errors for Doodle++ plugin 2024-04-18 22:12:56 -07:00
canvas_cursor.go Rename Go module 2022-09-24 15:17:25 -07:00
canvas_debug.go Finalize Non-square Doodads 2023-02-17 21:09:11 -08:00
canvas_editable.go Unit test fixes and code cleanup 2023-12-02 12:33:14 -08:00
canvas_link_tool.go Rename Go module 2022-09-24 15:17:25 -07:00
canvas_memory.go Rename Go module 2022-09-24 15:17:25 -07:00
canvas_present.go Fix doodad properties button hitbox 2024-02-11 17:00:19 -08:00
canvas_scrolling.go Fix touchscreen mode detection 2024-04-19 22:01:33 -07:00
canvas_strokes.go Rename Go module 2022-09-24 15:17:25 -07:00
canvas_wallpaper.go Update savegame format, Allow out-of-bounds camera 2023-03-07 21:55:10 -08:00
canvas_zoom.go Rename Go module 2022-09-24 15:17:25 -07:00
crosshair.go Rename Go module 2022-09-24 15:17:25 -07:00
scripting.go ListBoxes Overhaul 2023-04-08 21:26:08 -07:00