(iOS, WiiMote) Don't call calc_joystick_state for classic controller. The sticks aren't used so no point in doing the math (especially that sqrt).

This commit is contained in:
meancoot 2013-03-21 16:49:01 -04:00
parent d39f5280f9
commit a2122ff858

View File

@ -640,8 +640,8 @@ void classic_ctrl_event(struct classic_ctrl_t* cc, byte* msg) {
printf("lx ly rx ry %d %d %d %d\n",lx,ly,rx,ry);
#endif
calc_joystick_state(&cc->ljs, lx, ly);
calc_joystick_state(&cc->rjs, rx, ry);
// calc_joystick_state(&cc->ljs, lx, ly);
// calc_joystick_state(&cc->rjs, rx, ry);
/*
printf("classic L button pressed: %f\n", cc->l_shoulder);