From daac7a94e9b5b3aa21e0593229bd8552785d0c02 Mon Sep 17 00:00:00 2001 From: "guilhem.duche" Date: Mon, 3 Mar 2008 23:04:49 +0000 Subject: [PATCH] fixed to take raw data from IR sources git-svn-id: http://wiiusej.googlecode.com/svn/trunk@71 ae48ae66-6a45-0410-b38e-211266189506 --- WiiUseJC/wiiusej_WiiUseApi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/WiiUseJC/wiiusej_WiiUseApi.c b/WiiUseJC/wiiusej_WiiUseApi.c index dd461a9..83b2c4f 100644 --- a/WiiUseJC/wiiusej_WiiUseApi.c +++ b/WiiUseJC/wiiusej_WiiUseApi.c @@ -329,7 +329,7 @@ JNIEXPORT void JNICALL Java_wiiusej_WiiUseApi_specialPoll /* check if the source is visible */ if (wiimotes[i]->ir.dot[a].visible) { (*env)->CallVoidMethod(env, gath, mid, - wiimotes[i]->ir.dot[a].x, wiimotes[i]->ir.dot[a].y); + wiimotes[i]->ir.dot[a].rx, wiimotes[i]->ir.dot[a].ry); } } } @@ -358,7 +358,7 @@ JNIEXPORT void JNICALL Java_wiiusej_WiiUseApi_specialPoll case WIIUSE_STATUS: /* a status event occured */ - mid = (*env)->GetMethodID(env, cls, "addDisconnectionEvent", "(IZFSZIZFFFZZZZ)V"); + mid = (*env)->GetMethodID(env, cls, "addStatusEvent", "(IZFSZIZFIFZZZZ)V"); if (mid == 0) { return; }