(XDK1) Add pad disconnected message

This commit is contained in:
twinaphex 2015-04-06 02:30:27 +02:00
parent b5e5dc58c2
commit 29b7785dd7

View File

@ -163,6 +163,11 @@ static void xdk_joypad_poll(void)
gamepads[port] = 0;
pad_state[port] = 0;
char msg[512];
snprintf(msg, sizeof(msg), "Joypad #%u (%s) disconnected.", i, udev_pads[i].ident);
rarch_main_msg_queue_push(msg, 0, 60, false);
RARCH_LOG("%s\n", msg);
}
/* handle inserted devices. */