code so far just excerpts
Code: Select all
#include <math.h>
#define PI 3.14159265
    while(1){
         sceCtrlReadBufferPositive(&pad, 1);
         x= pad.Lx - 130;
         y= pad.Ly - 130;
         rotation = float atan2 (x,y) /(PI/180);
         for(loop=0; loop < 10; loop++){
         printf("rotation: %i",rotation);
         }
    }
what it should do:
find the rotation of the analog stick just for testing purposes
error codes:
undefined reference to atan2
error 1
