bugfix for joypad, when use container_of to obtain parent nes pointer.