Lines Matching refs:s16
38 static void __ClampStickOctagon ( void *px, void *py, s16 max, s16 xy, s16 min, u8 type );
39 static void __ClampStickCircle ( void *px, void *py, s16 radius, s16 min, u8 type );
41 static void __ClampCube ( s16 *px, s16 *py, s16 *pz, WPADAcc unit, f32 max );
42 static void __ClampSphere ( s16 *px, s16 *py, s16 *pz, WPADAcc unit, f32 max );
48 s16 minStick; // the play of the control stick
49 s16 maxStick;
50 s16 xyStick; // max on x = y
51 s16 radStick; // max radius of the control stick
341 static void __ClampStickOctagon(void* px, void* py, s16 max, s16 xy, s16 min, u8 type) in __ClampStickOctagon()
356 x = *((s16*)px); in __ClampStickOctagon()
357 y = *((s16*)py); in __ClampStickOctagon()
407 *((s16*)px) = 0; in __ClampStickOctagon()
408 *((s16*)py) = 0; in __ClampStickOctagon()
427 x = (s16) (xy * max * x / d); in __ClampStickOctagon()
428 y = (s16) (xy * max * y / d); in __ClampStickOctagon()
444 x = (s16) (xy * max * x / d); in __ClampStickOctagon()
445 y = (s16) (xy * max * y / d); in __ClampStickOctagon()
457 *(s16*)px = (s16) (signX * x); in __ClampStickOctagon()
458 *(s16*)py = (s16) (signY * y); in __ClampStickOctagon()
474 static void __ClampStickCircle(void *px, void *py, s16 radius, s16 min, u8 type) in __ClampStickCircle()
488 x = *((s16*)px); in __ClampStickCircle()
489 y = *((s16*)py); in __ClampStickCircle()
537 *(s16*)px = (s16)x; in __ClampStickCircle()
538 *(s16*)py = (s16)y; in __ClampStickCircle()
583 static void __ClampCube(s16 *px, s16 *py, s16 *pz, WPADAcc unit, f32 max) in __ClampCube()
625 *px = (s16)(x * (f32)unit.x); in __ClampCube()
626 *py = (s16)(y * (f32)unit.y); in __ClampCube()
627 *pz = (s16)(z * (f32)unit.z); in __ClampCube()
643 static void __ClampSphere(s16 *px, s16 *py, s16 *pz, WPADAcc unit, f32 max) in __ClampSphere()
660 *px = (s16)(x * (f32)unit.x); in __ClampSphere()
661 *py = (s16)(y * (f32)unit.y); in __ClampSphere()
662 *pz = (s16)(z * (f32)unit.z); in __ClampSphere()