Perhaps the simplest way to solve that problem would be something like X-Mouse
http://www.highrez.co.uk/downloads/X...tonControl.htm
I don't use it because my mouse drivers have the built in support to map mouse buttons to keyboard entry, so I don't know how well this particular program works.