Joystick control

Hello!

Maybe not a ETC Labs question but do anyone know a way to translate a joystick movement and buttons to OSC? 

I have made a gamepad work with Cobalt with keystrokes and mouse control But now I want a Logitech EXTREME 3D Pro to work. 

Johannes