bikkelbroeders / TouchBarDemoApp

Allows you to use your macOS Touch Bar from an iPad (through USB connection) or on-screen by pressing the Fn-key.
MIT License
1.66k stars 120 forks source link

[Feature] Trackpad above Touch Bar on iPad #26

Closed ghost closed 7 years ago

ghost commented 7 years ago

It will be great if you add virtual trackpad on free space in app for iPad.

AndreasVerhoeven commented 7 years ago

As much as we would like to do this, there is no way on macOS to simulate trackpad input at the moment.

par5ul1 commented 7 years ago

could this be of any help? Sorry if it's useless but I found this and thought maybe it would be useful.

palxex commented 7 years ago

@par5ul1 Just did a little research, seems its main propose is help you inject multi-touch event if you already got a OSX-supported multi-touch device - it means magic mouse/trackpad. For those who don't have either, the multitouch framework cannot even start working ( cannot get a valid MTDeviceRef - and all later works depends it ). To make it work, we'll need first emulate such a device, from driver level, to makes this framework thinks it exist to work; and then, all gestures still need be recognize by coding by hand - currently only 2 finger swipe/pan/rotate implemented - since seems the magic mouse/trackpad hardware recognize them internally. And the framework seems being rewritten by mavericks, possible more reverse engine needed. Seems its would be a much bigger task than the whole project currently.

gerwitz commented 7 years ago

Not to beat a dead horse, but could a subset of "non-pointer" gestures be more reasonable?

My (probably very personal) scenario: I use a mouse but still reach to the trackpad for two-finger scroll and three-finger swipe-between-spaces.

Even if that's going too far, thanks for publishing this! I hope it will drive TouchBar emulation across other "use my iPad as a peripheral" apps.