summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Spilsbury <Sam@ACER-SUSE.SUSE>2008-03-03 10:19:58 +0900
committerSam Spilsbury <Sam@ACER-SUSE.SUSE>2008-03-03 10:19:58 +0900
commit870b3c403d94aa710aefd9d3c781e82c8eaa6f75 (patch)
tree1716fd6b813abdca156d7122d1832803e0a45024
parent1702942127e03380977a776488da042b928a046b (diff)
downloadwiimote-870b3c403d94aa710aefd9d3c781e82c8eaa6f75.tar.gz
wiimote-870b3c403d94aa710aefd9d3c781e82c8eaa6f75.tar.bz2
* Nunchuck button support
-rw-r--r--wiimote.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/wiimote.c b/wiimote.c
index 93bc480..ddc5a62 100644
--- a/wiimote.c
+++ b/wiimote.c
@@ -1030,6 +1030,7 @@ void cwiid_callback(cwiid_wiimote_t *wiimote, int mesg_count,
state.ext.nunchuk.stick[CWIID_X];
ad->cWiimote[wiimoteNumber].nunchuck.initStickY =
state.ext.nunchuk.stick[CWIID_Y];
+ wiimoteProcessNunchuckButtons(firstDisplay, wiimoteNumber, (struct cwiid_nunchuk_mesg *) &mesg[i]);
break;
case CWIID_EXT_CLASSIC:
/*printf("Classic Controller");*/