Does Synergy not offer that option already? I would be amazed if it didn't seeing as it's pay-to-use software.

On the other hand, both Input Direct and Mouse w/o Borders offer what you want, and they're free of cost.