Hi again guys. This keeps getting better and better ... But somehow I got it working...
What did I change? Well... After 8 bytes I now return 4 (100b in binary) and when reading, I read the same controller from $4016 and $4017. I don't know what I changed but that "hack" put my controls to work in all the games...
It really pisses me off getting stuff working without understanding what's going on but ok.
@3gengames I'm also oring with 0x40 but it has no effect on SMB, anyway thank you for alerting me to that. In the future when I start testing other games I doubt I'd ever figure that out if I had a bug!
But still, is there any more program for reading the $4016 register?
What do you mean?
Thank you very much for you anwsers guys. If you want to comment on this "solution" please feel free. Still can't really understand why this would work as the documentation doesn't talk about this...
This SMB seems kinda hard to get it working... My scrolling is kinda crappy and sprites in super mario bros are being drawn too much to the left then they should (what the hell?) and in other games everything works good!