Not sure about the joystick, but you can use a VNC player (and a VNC server on your laptop) to make the connection, then control your laptop's desktop from the RPi.
I found two more alternatives: This article on our sister site SuperUser.com details how to use NetCat (nc
) to achieve keyboard-sharing over the network, and it also gives details on how to use Synergy or Synergy+ for the same purpose. Synergy is not free though, it costs $10 for the basic edition, but works across Windows, Mac and Linux. I have no experience with this software. There is actually a free version available, but it is slightly outdated.