Joy-stick programing

I've found myself having to write a program to use a Joystick in graphics
mode. I have the interupts etc and can access the joystick, but I was
wondering if anyone who has done this sort of programing can warn me of
some potential pitfalls before I start into the heavy coding. Thanks - Bob