If Joust works fine, it's unlikely an issue with the joysticks themselves or Hatari itself. If e.g. joystick keyboard emulation works with it, joysticks are fine. More likely, the game isn't compatible with the TOS version you're using, it it supports only some other input method. Try other TOS versions and read the game documentation.