Welcome! Log In Create A New Profile

Advanced

2 player ir question [Solved]

Posted by g_man 
2 player ir question [Solved]
March 26, 2009 07:03PM
I'm trying to get 2 ir results on screen and so far one the first player controller takes ir input.
code:
r_t ir2;

ir_t ir1;

//other code

WPAD_IR(0, &ir1);
WPAD_IR(1, &ir2);

//other stuff

if (control1 == 1){
	loc1_y = ir1.y;
}

if (control2 == 1){
	loc2_y = ir2.y;
}
loc1_y & loc2_y store the location of the paddle. what is wrong?

Ok i just forgot to add this
WPAD_SetDataFormat(1, WPAD_FMT_BTNS_ACC_IR);



Edited 1 time(s). Last edit at 03/26/2009 07:33PM by g_man.
Sorry, only registered users may post in this forum.

Click here to login