Print warnings for invalid XInput device index

Thanks to user m-decoster in PR #217 for the original submission