Pretty much the last thing I need to figure out for my #iLamp is how to get the one-button mouse with which it came to do right-click and middle-click.
The easiest thing to do is probably to use xmodmap to remap function keys to act as mouse buttons. I already use xmodmap to turn Caps Lock into a Compose key, so it shouldn't be too hard.