Mouse coordinates all crazy? [Libgdx]

 I have a game where the player follows the mouse's x position and I want it to not go past the screen width or before it, but I'm getting some insane numbers in the x position of the mouse.

 This is what I have to get the mouse position in the player class: 

x = Gdx.input.getX() - playerTexture.getWidth()/2;

Also, the width of the screen is only 480