Skip to content

Commit 717524b

Browse files
committed
display serial too
1 parent 603d127 commit 717524b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

library/graphics/Gamepad.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,8 @@ namespace gf {
237237
if (gamepad == nullptr) {
238238
Log::error("Could not open gamepad with id {}: {}", uint32_t(id), SDL_GetError());
239239
} else {
240-
Log::debug("\tserial: {:016X}", uint64_t(GamepadDevice(gamepad).serial_id()));
240+
auto device = GamepadDevice(gamepad);
241+
Log::debug("\tserial: {:016X} ({})", uint64_t(device.serial_id()), device.serial().c_str());
241242
}
242243

243244
return { gamepad };

0 commit comments

Comments
 (0)