To use TableNinja II with a joystick you will need to download and use a third party program such as Xpadder®.
TableNinja II does not directly read joystick input, but this program will convert your joystick input into keyboard or mouse commands which TableNinja II can then assign to hotkeys.