Accessing the joystick from Delphi

Does any of you guys have a piece of code that uses the joystick
from Delphi? Is it difficult?

Thanx