From 29b7785dd7c63ed778280425765536418e112ec6 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Mon, 6 Apr 2015 02:30:27 +0200 Subject: [PATCH] (XDK1) Add pad disconnected message --- input/drivers_joypad/xdk_joypad.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/input/drivers_joypad/xdk_joypad.c b/input/drivers_joypad/xdk_joypad.c index 076c5439fc..2f04c2d6b8 100644 --- a/input/drivers_joypad/xdk_joypad.c +++ b/input/drivers_joypad/xdk_joypad.c @@ -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. */