Added USB VID/PID information to the SDL test programs
This commit is contained in:
parent
651314f513
commit
3055d5af65
3 changed files with 11 additions and 1 deletions
|
@ -274,6 +274,7 @@ main(int argc, char *argv[])
|
|||
SDL_Log(" buttons: %d\n", SDL_JoystickNumButtons(joystick));
|
||||
SDL_Log("instance id: %d\n", SDL_JoystickInstanceID(joystick));
|
||||
SDL_Log(" guid: %s\n", guid);
|
||||
SDL_Log(" VID/PID: 0x%.4x/0x%.4x\n", SDL_JoystickGetVendor(joystick), SDL_JoystickGetProduct(joystick));
|
||||
SDL_JoystickClose(joystick);
|
||||
}
|
||||
}
|
||||
|
@ -344,3 +345,5 @@ main(int argc, char *argv[])
|
|||
}
|
||||
|
||||
#endif
|
||||
|
||||
/* vi: set ts=4 sw=4 expandtab: */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue