Lines Matching refs:pos
241 static int calcDigitalCursorPos( u32 button, Vec2* pos );
449 Vec2 pos[WPAD_MAX_CONTROLLERS]; in main() local
656 pos[i].x = kpad_status[i].pos.x; in main()
657 pos[i].y = kpad_status[i].pos.y; in main()
658 pos[i].x *= pRm->fbWidth * 0.5f; in main()
659 pos[i].y *= pRm->xfbHeight * 0.5f; in main()
660 pos[i].x *= posAdjust.x; in main()
661 pos[i].y *= posAdjust.y; in main()
665 GXPosition2f32( -10 + pos[i].x, -10 - pos[i].y ); in main()
667 GXPosition2f32( -10 + pos[i].x, 10 - pos[i].y ); in main()
669 GXPosition2f32( 10 + pos[i].x, 10 - pos[i].y ); in main()
671 GXPosition2f32( 10 + pos[i].x, -10 - pos[i].y ); in main()
972 static int calcAnalogCursorPos( f32 stickX, f32 stickY, Vec2* pos ) in calcAnalogCursorPos() argument
980 pos->x = AbsClamp( pos->x + x, 1.0f ); in calcAnalogCursorPos()
981 pos->y = AbsClamp( pos->y - y, 1.0f ); in calcAnalogCursorPos()
986 static int calcDigitalCursorPos( u32 button, Vec2* pos ) in calcDigitalCursorPos() argument
994 case KPAD_CL_BUTTON_UP: pos->y-=spd; break; in calcDigitalCursorPos()
995 case KPAD_CL_BUTTON_LEFT: pos->x-=spd; break; in calcDigitalCursorPos()
996 case KPAD_CL_BUTTON_DOWN: pos->y+=spd; break; in calcDigitalCursorPos()
997 case KPAD_CL_BUTTON_RIGHT: pos->x+=spd; break; in calcDigitalCursorPos()
998 case KPAD_CL_BUTTON_UP |KPAD_CL_BUTTON_LEFT: pos->y-=spd2; pos->x-=spd2; break; in calcDigitalCursorPos()
999 case KPAD_CL_BUTTON_UP |KPAD_CL_BUTTON_RIGHT: pos->y-=spd2; pos->x+=spd2; break; in calcDigitalCursorPos()
1000 case KPAD_CL_BUTTON_DOWN|KPAD_CL_BUTTON_LEFT: pos->y+=spd2; pos->x-=spd2; break; in calcDigitalCursorPos()
1001 case KPAD_CL_BUTTON_DOWN|KPAD_CL_BUTTON_RIGHT: pos->y+=spd2; pos->x+=spd2; break; in calcDigitalCursorPos()
1004 pos->x = AbsClamp( pos->x, 1.0f ); in calcDigitalCursorPos()
1005 pos->y = AbsClamp( pos->y, 1.0f ); in calcDigitalCursorPos()
1049 cursorPos[no].x = kpad->pos.x; in GetControllerStatus()
1050 cursorPos[no].y = kpad->pos.y; in GetControllerStatus()
1053 kpad->pos.x = cursorPos[no].x; in GetControllerStatus()
1054 kpad->pos.y = cursorPos[no].y; in GetControllerStatus()