Rather than being MIDI devices, those controllers are essentially programmable mini-keyboards so (as mridlen says) the buttons (and wheel) would get mapped to the equivalent keyboard shortcut using a keyboard mapping utility supplied with the device (will probably have a download link in the manual). I've got a Contour Shuttle and this is what the utility looks like, I'd imagine those two you linked to would be similar in function
