Top-Down Mouse aiming help

To give context, the way it is currently setup, I can aim perfectly with a joystick however when I attempt to use the position of the mouse with the input system, it functions incorrectly.

public void OnAim(InputAction.CallbackContext context)
     aimInput = context.ReadValue<Vector2>();
private void Aim(){
        faceDirection = Vector3.forward * aimInput.x + Vector3.left * aimInput.y;
        var desiredRotation = Quaternion.LookRotation(faceDirection);
        transform.rotation = Quaternion.RotateTowards(transform.rotation, 
        desiredRotation, lookSpeed * Time.deltaTime);

Trying to figure out how to make this work with both controller & keyboard + mouse. Thank you for your help!

Brackey’s made a video on how to create a top down shooter with a mouse controller. You could create a bool to switch between controller and KBM as a test.

The timestamp will take you straight to where the finished code is for the mouse movement.

Hope this helps!