Noah Petherbridge
5b3121171e
* 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). |
||
---|---|---|
.. | ||
magic-form | ||
actor_animation.go | ||
actor_collision.go | ||
actor_events.go | ||
actor.go | ||
canvas_actors.go | ||
canvas_cursor.go | ||
canvas_debug.go | ||
canvas_editable.go | ||
canvas_link_tool.go | ||
canvas_memory.go | ||
canvas_present.go | ||
canvas_scrolling.go | ||
canvas_strokes.go | ||
canvas_wallpaper.go | ||
canvas_zoom.go | ||
canvas.go | ||
crosshair.go | ||
scripting.go |