-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|459|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
SoCoder -> Snippet Home -> Text and GUI's


 
Cower
Created : 08 January 2010
Edited : 08 January 2010
System : Mac
Language : Blitz Max

Multitouch Trackpad Events

Code for handling for mutlitouch trackpad events (magnification, rotation, and swiping) in BlitzMax under Mac OS

What this does is it takes a TGLGraphics instance and inserts a responder into the responder chain for the window or view associated with the graphics, and then passes along events to BlitzMax, which you can get at by polling for events or adding a hook for EmitEventHook.

The only important functions are CreateTrackpadHandler and DestroyTrackpadHandler. The event constants are in the source, but only three of them are used, so don't bother checking for the ones marked 'unused.'

Example



tracktouch.m (required)


tracktouch.bmx (required)

 

Comments