I've also used your code in a widget, but I have the bee + I have stock and ideal, but everything is one button, with i dunno what function.
With Linux-powered N900..ANYTHING is possible