1. Change onToolBreak in the registerInputEvent call to whatever you want the event named
2. Write a fxDtsBrick::<yourEventName> method.
3. Copy the $InputTarget_ variable definitions in the example to your function
4. In the serverCmd that's called when a client presses the gui button, you'll need to somehow choose a brick that has the event on it, then call %brick.processInputEvent(<yourEventName>);
I think that's it, I've only ever written an input event once