Try USB Overdrive. It's free with a nag screen on boot, or a very reasonable price to buy it with lifetime upgrades.
Edit: sorry, my mistake... Just looked at the website, and it doesn't support Apple mice.
Instead, try Better Touch Tool - one of its many features is (magic) mouse control.