Exactly, so you cannot count on mappings between devices. Since OIS gives you device names, you can use that to apply some sort of mapping between various devices that you know. However, the best way is to let the user entirely assign different actions to different controls - action mapping. You should do the same for keyboards which will also differ between locales. Might as well let user configure mouse buttons/axes also.