The Apple Magic Mouse appears to work with Ubuntu so far, but only a couple multitouch functions seem to work. With the trackpad, there are lots of other functions with utouch. What I'd really like to do is map two-finger swipes to back/forward in a browser.
Have you tried touchegg? I was able to define some gestures on my MacBook's touchpad.
I have set up this and many other gestures with touchegg. Install it via:
Configurate touchegg via its configuration file located here:
Configuration for your desired gestures would be the following.
It's important to follow the last hint of the FAQ if you want to setup two or three finger gestures.
Create an executable shell script and fire it up on startup.
This deactivates the two and three finger taps and clicks of the synaptics driver as well as the two finger scrolling. If you want to keep the two finger tap to be the right mouse button click and the two finger scrolling you have to do it with touchegg as well.
I think the magic mouse reports itself as a trackpad as stated here.