I don't know the answer exactly, but see this previous post:
http://www.linuxquestions.org/questions/history/77125
If I were you my first ports of call would be:
http://www.xfree86.org/current/mouse.html
also the man pages for mouse, just incase.
It's well worth taking a look at man keyboard and XF86Config as they talk about how to assign new functions to num lock, caps lock and scroll lock (aka the led keys) and tell you how to assign their defaults.
It can be a pain in the bum trying to get this to work - expect your mouse to behave in really strange ways and remember ctrl+atl+backspace to get out of X should your mouse fail all together.
Good luck
