(retroarch-qt) Add mouse handling
Use C linkage in input_common.*