Added HID event code, based on the GSP event code. Added event id check in gspWaitForEvent().