Lines Matching refs:s16
41 static void __ClampStickOctagon ( void *px, void *py, s16 max, s16 xy, s16 min, u8 type );
42 static void __ClampStickCircle ( void *px, void *py, s16 radius, s16 min, u8 type );
44 static void __ClampCube ( s16 *px, s16 *py, s16 *pz, WPADAcc unit, f32 max );
45 static void __ClampSphere ( s16 *px, s16 *py, s16 *pz, WPADAcc unit, f32 max );
51 s16 minStick; // the play of the control stick
52 s16 maxStick;
53 s16 xyStick; // max on x = y
54 s16 radStick; // max radius of the control stick
344 static void __ClampStickOctagon(void* px, void* py, s16 max, s16 xy, s16 min, u8 type) in __ClampStickOctagon()
359 x = *((s16*)px); in __ClampStickOctagon()
360 y = *((s16*)py); in __ClampStickOctagon()
410 *((s16*)px) = 0; in __ClampStickOctagon()
411 *((s16*)py) = 0; in __ClampStickOctagon()
430 x = (s16) (xy * max * x / d); in __ClampStickOctagon()
431 y = (s16) (xy * max * y / d); in __ClampStickOctagon()
447 x = (s16) (xy * max * x / d); in __ClampStickOctagon()
448 y = (s16) (xy * max * y / d); in __ClampStickOctagon()
460 *(s16*)px = (s16) (signX * x); in __ClampStickOctagon()
461 *(s16*)py = (s16) (signY * y); in __ClampStickOctagon()
477 static void __ClampStickCircle(void *px, void *py, s16 radius, s16 min, u8 type) in __ClampStickCircle()
491 x = *((s16*)px); in __ClampStickCircle()
492 y = *((s16*)py); in __ClampStickCircle()
540 *(s16*)px = (s16)x; in __ClampStickCircle()
541 *(s16*)py = (s16)y; in __ClampStickCircle()
586 static void __ClampCube(s16 *px, s16 *py, s16 *pz, WPADAcc unit, f32 max) in __ClampCube()
628 *px = (s16)(x * (f32)unit.x); in __ClampCube()
629 *py = (s16)(y * (f32)unit.y); in __ClampCube()
630 *pz = (s16)(z * (f32)unit.z); in __ClampCube()
646 static void __ClampSphere(s16 *px, s16 *py, s16 *pz, WPADAcc unit, f32 max) in __ClampSphere()
663 *px = (s16)(x * (f32)unit.x); in __ClampSphere()
664 *py = (s16)(y * (f32)unit.y); in __ClampSphere()
665 *pz = (s16)(z * (f32)unit.z); in __ClampSphere()