Are you sending mouse events to SketchUp?

Or do you want to translate gestures into SketchUp commands?

If the latter, then you might be able to use the Ruby API or the C++ SDK API?