[retro-gtk/gamepad] Add some traces
- From: Adrien Plazas <aplazas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [retro-gtk/gamepad] Add some traces
- Date: Tue, 25 Jul 2017 13:42:52 +0000 (UTC)
commit d7d05b31ff5409e305935fc16b0a064afb0e94c4
Author: Adrien Plazas <kekun plazas laposte net>
Date: Tue Jul 25 15:42:40 2017 +0200
Add some traces
retro-gtk/input/retro-gamepad.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/retro-gtk/input/retro-gamepad.c b/retro-gtk/input/retro-gamepad.c
index 29767df..d947c9c 100644
--- a/retro-gtk/input/retro-gamepad.c
+++ b/retro-gtk/input/retro-gamepad.c
@@ -155,8 +155,12 @@ retro_gamepad_internal_get_input_state (RetroInputDevice *base,
switch (device) {
case RETRO_DEVICE_TYPE_JOYPAD:
+ g_message ("retro_gamepad_internal_get_input_state: id %u", id);
+
g_return_val_if_fail (id < RETRO_JOYPAD_ID_COUNT, 0);
+ g_message (" pressed: %d", RETRO_GAMEPAD_INTERNAL (self)->buttons[id]);
+
return RETRO_GAMEPAD_INTERNAL (self)->buttons[id];
case RETRO_DEVICE_TYPE_ANALOG:
g_return_val_if_fail (index < RETRO_ANALOG_INDEX_COUNT, 0);
[
Date Prev][
Date Next] [
Thread Prev][Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]