I remember seeing a function in the SDL code that does something like: if xinput else if directinput else if raw input ect. So you could add a variable there and then you would probably know which api is used. You would then have to use your own SDL version.
But if you want to use the menu functions of my plugin anyway it is easier to do this for all kinds of controllers I think.