From abf13bae58b4c93c40beb36a5db0c7245b77b5aa Mon Sep 17 00:00:00 2001 From: Ryan Pavlik Date: Thu, 28 Jun 2012 16:21:57 -0500 Subject: [PATCH] Add debug display of joystick calibration data. --- src/nunchuk.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/nunchuk.c b/src/nunchuk.c index 6e9811d..94f9c46 100644 --- a/src/nunchuk.c +++ b/src/nunchuk.c @@ -99,6 +99,9 @@ int nunchuk_handshake(struct wiimote_t* wm, struct nunchuk_t* nc, byte* data, un nc->js.max.y = data[offset + 11]; nc->js.min.y = data[offset + 12]; nc->js.center.y = data[offset + 13]; + WIIUSE_DEBUG("Nunchuk calibration X: min %x, max %x, center %x Y: min %x, max %x, center %x", + nc->js.min.x, nc->js.max.x, nc->js.center.x, + nc->js.min.y, nc->js.max.y, nc->js.center.y); /* default the thresholds to the same as the wiimote */ nc->orient_threshold = wm->orient_threshold;