src/joystick/psp/SDL_sysjoystick.c
changeset 7860 2b0bcdea3a79
parent 7191 75360622e65f
child 8138 0fbc97d82043
equal deleted inserted replaced
7859:af63b63e7aac 7860:2b0bcdea3a79
    58 static point b = { 50, 0  };
    58 static point b = { 50, 0  };
    59 static point c = { 78, 32767 };
    59 static point c = { 78, 32767 };
    60 static point d = { 128, 32767 };
    60 static point d = { 128, 32767 };
    61 
    61 
    62 /* simple linear interpolation between two points */
    62 /* simple linear interpolation between two points */
    63 static __inline__ void lerp (point *dest, point *a, point *b, float t)
    63 static SDL_INLINE void lerp (point *dest, point *a, point *b, float t)
    64 {
    64 {
    65     dest->x = a->x + (b->x - a->x)*t;
    65     dest->x = a->x + (b->x - a->x)*t;
    66     dest->y = a->y + (b->y - a->y)*t;
    66     dest->y = a->y + (b->y - a->y)*t;
    67 }
    67 }
    68 
    68