doodle/pkg/native
Noah Petherbridge 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
..
browser_wasm.go Level Thumbnails on Story Mode Select 2023-12-09 14:59:31 -08:00
browser.go Level Thumbnails on Story Mode Select 2023-12-09 14:59:31 -08:00
doc.go Add app version/update check to the Main Scene 2020-01-01 17:50:15 -08:00
engine_sdl.go Fix touchscreen mode detection 2024-04-19 22:01:33 -07:00
engine_wasm.go Walk up slopes smoothly, texture freeing improvement 2024-02-07 22:14:48 -08:00
file_dialog_fallback.go Level Thumbnails on Story Mode Select 2023-12-09 14:59:31 -08:00
file_dialog_native.go Level Thumbnails on Story Mode Select 2023-12-09 14:59:31 -08:00
file_dialogs.go Level Thumbnails on Story Mode Select 2023-12-09 14:59:31 -08:00
touch_screen.go Fix touchscreen mode detection 2024-04-19 22:01:33 -07:00
username.go D++ Default Author and Embedded Doodads Error 2024-04-18 22:31:11 -07:00