Added USB VID/PID information to the SDL test programs

This commit is contained in:
Sam Lantinga committed 2016-11-10 18:53:50 -08:00
1 parent 0cc6207c68
commit c406f649b3
3 files changed
+11 -1

No files matched your search

+3
View File
@@ -368,6 +368,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);
}
}
@@ -435,3 +436,5 @@ main(int argc, char *argv[])
}
#endif
/* vi: set ts=4 sw=4 expandtab: */