Please check out i.e. `samples/tgidemo.c` on how this is supposed to be handled.

The `atari5200.h` has the `#define DYN_DRV 0` missing. Please check out i.e. `lynx.h` as an example.

And `atari5200.h` should contain a `atr5200std_joy` declaration, shouldn't it? Again see `lynx.h` as an example.