mihaip / infinite-mac

A classic Mac loaded with everything you'd want
https://infinitemac.org
Apache License 2.0
1.12k stars 66 forks source link

Virtual trackpad for mobile devices #291

Closed robinhood2014 closed 4 months ago

robinhood2014 commented 4 months ago

I'd like to see the addition of a virtual trackpad to facilitate the use of Infinite Mac on iOS and Android devices. Right now the jumping behavior of the emulated mouse cursor is causing some unease of use on these platforms, because the touchscreen's default behavior is to register direct manipulation of screen elements, which doesn't translate well to a classic, non-touchscreen Mac, which expects indirect manipulation and relative positioning.

that-ben commented 4 months ago

Alternatively (and although it won't solve everything) you could try the new mouse relative movement setting

EDIT: Nevermind.

mihaip commented 4 months ago

Agreed, something like would be nice. It would also help with being able to double-click on mobile (#8). I'll most likely investigate a mode similar to what PCjs does, where the entire screen is a virtual trackpad.

@that-ben relative mouse movement doesn't work at all with touch events right now (code comment), a virtual trackpad would also help with that.

mihaip commented 4 months ago

I have an early version of this if you want to try it -- on a touch device to go https://infinitemac.org/1994/System%207.5 and tap the "Trackpad" option at the bottom of the screen. When it's enabled, the entire screen becomes a virtual trackpad. It supports basic tap-to-click gesture, as well as a a tap-then-drag to do a drag while the virtual mouse button is down. It works well for double-clicking and dragging windows around, but opening of pull-down menus is pretty finicky.

robinhood2014 commented 4 months ago

Good progress. As you said, pull-down menu opening needs work, and I did notice it was a little bit on the slow side at times. Other than that, the emulated trackpad works quite well.

Get Outlook for Androidhttps://aka.ms/AAb9ysg


From: Mihai Parparita @.> Sent: Saturday, March 2, 2024 6:38:33 PM To: mihaip/infinite-mac @.> Cc: Brandon Taylor @.>; Author @.> Subject: Re: [mihaip/infinite-mac] Virtual trackpad for mobile devices (Issue #291)

I have an early version of this if you want to try it -- on a touch device to go https://infinitemac.org/1994/System%207.5 and tap the "Trackpad" option at the bottom of the screen. When it's enabled, the entire screen becomes a virtual trackpad. It supports basic tap-to-click gesture, as well as a a tap-then-drag to do a drag while the virtual mouse button is down. It works well for double-clicking and dragging windows around, but opening of pull-down menus is pretty finicky.

— Reply to this email directly, view it on GitHubhttps://github.com/mihaip/infinite-mac/issues/291#issuecomment-1974959971, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABVGASSSXAH6ZJOH4WO574TYWJWITAVCNFSM6AAAAABDTX3V2WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNZUHE2TSOJXGE. You are receiving this because you authored the thread.Message ID: @.***>

that-ben commented 4 months ago

HA! That's pretty neat! Thanks for implementing the trackpad functionality!

mihaip commented 4 months ago

@robinhood2014 I added a basic acceleration curve and implemented a basic drag lock mode, should feel a bit better.