You were not hacked.
Virtual web-cam software allows to use images, videos and even a part of desktop instead of real web-cam. That part of desktop was video from your web-cam. You can't prevent this, just skip to the next person.
Note that
chatroulette.com web-cam can be recorded, so someone can really record your web-cam and then show the video to other people using virtual web-cam software.