Mac Trackpad Plugin
This plugin allows you to handle multitouch events on the mac trackpad.
Limitations:
Only works on MacOSFunctions:
macTrackpad.init(listener)
listener(function)(required) returns following events
event.phase(string) returns "began","moved", "ended"(note multiple event.phase maybe returned)
event.type(string) returns "pressure", "magnify", or "rotation"
event.pressue(number) returns number between 0-1(only returned on event.type "pressure")
event.rotation(number) returns degree of rotation(only returned on event.type "rotation")
event.magnification(number) returns number between 0-1(only returned on event.type "magnify")
Build.settings
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
settings = | |
{ | |
plugins = { | |
["plugin.macTrackpad"] = { | |
publisherId = "tech.scotth", | |
}, | |
} | |
} |