* changes: Use switch statement for report types Use a separate writeEvent function Use unique_fd for uhid device