Several mice

I try to use two mice or more simultaneously.
I use them as cheap and wireless switches.
Is there a way to differentiate their ID (mouse1 right click / left click- mouse2 right click / left click…)

Currently I use GlovePie to convert buttons into keyboard key.

guess you need to do more in glovepie, like mouse to osc or midi

go deep with SlimDX RawInput

SlimDX RawInput seems good…But I do not know programming in C # !