Buttons and Companion Connections

I have a custom connection written for Companion, is there a way to use this with Buttons? The module structure seems different?