I'm using the Slick gaming library, and I can't seem to figure out how to get input from controllers such as a joystick. Also, I can't seem to find any helpful examples, tutorials, or anything like that. I just need to be able to get values for the axes for my joystick.

This is all I have right now :

Java Code:
   public void update(GameContainer gc, StateBasedGame sbg, int delta) throws SlickException{
	   Input input = gc.getInput();
	   input.initControllers();
	   controller = input.getControllerCount();
input.getAxisValue(0, 0)
System.out.println(controller);}
I'm getting 0 as the value for the number of controllers, so I'm assuming maybe I have to create a new controller or something somehow? I have my joystick plugged in.

I'm a little lost here, I appreciate any help!