2 player ir question [Solved] March 26, 2009 07:03PM | Registered: 15 years ago Posts: 444 |
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?
WPAD_SetDataFormat(1, WPAD_FMT_BTNS_ACC_IR);