sindresorhus / Actions

⚙️ Supercharge your shortcuts
https://sindresorhus.com/actions
MIT License
2.55k stars 107 forks source link

Action proposal: device display’s touch state #168

Closed juliusl closed 10 months ago

juliusl commented 10 months ago

Description

Check and return the touch state of the screen. This could be used with the action button to dynamically switch the function.

For example, with the left hand gripping and thumb holding the action button, based on the touch count of the right hand do x.

Would mostly be useful to know if at least multi-touch is detected but additional information is appreciated.

sindresorhus commented 10 months ago

This is unfortunately not possible. Touch can only be detected in an app when it's in the foreground. Only Apple can make an action like this.