Joystick with swf

Do somebody know if is possible to use joystick with swf e.g. handle a flash game with joystick?
thanks