MTP:
Filter:
MultiTouchPad/Classes (extension) | Interfaces

MTP
ExtensionExtension

use multitouch MacBook trackpads on OSX as controllers.

Description

MultiTouchPad is a quark and class written by Batuhan Bozkurt which allows using multitouch enabled touchpads on current MacBook models. MTP is an update with some extensions by Alberto de Campo. Both are Singleton classes, so there are only class methods.

NOTE: Requires Installation of tongsengmod cmdline program - see: Classes/MultiTouchPad.

Tested with OSX Leopard (10.5) up to macOS High Sierra (10.13.6).

First code example:

Class Methods

.start

.stop

start and stop tongsengmod program

.touchAction

.untouchAction

.setAction

get and set the actions for touch, untouch and set

.resetActions

reset all actions to nil

.gui

make or show a gui window to play with MTP

.guiWin

access the gui window (if it exists)

New methods in MTP :

.keydownDict

dictionary of functions to do when that key is pressed.

.defaultDrawFunc

the default drawFunc used by MTPs userview.

.killAll

kill all instances of tongsengmod

.uview

the userview used for MTP finger display

.refresh

refresh guiWin

.maximize

maximize guiWin so one can safely play without touching any other windows

.minimize

minimize guiWin, to smallRect

.smallRect

bounds to use for minimizing - will be retained when set by rezising.

.infoText

get general text to display on guiWin

.extraText

get and set extra text to display on guiWin

.fingerCol

get and set color to display fingers with

.fingerSize

get and set size to display fingers with

.fingerStrings

dict of strings to diplay around each finger

Inherited from MultiTouchPad:

(see MultiTouchPad)

.progpath

.setDevice

.activeBlobs

.fingersDict

.guiOn

.device

.pid

.isRunning

.processOSC

.responder

Examples