mousepod is a tool that lets you control your mouse using your iOS device. Just download the app into your device, download and install the desktop app, connect, and start using your device as a trackpad.
Download the OSX client (for Intel Macs with OSX 10.6 and newer) from http://www.ganglionsoftware.com/mousepod.html