GAIN is 0 if the event is a loss or 1 if it is a gain.STATE a bitmask of the following values: SDL-APP-MOUSE-FOCUS if mouse focus was gained or lost, SDL-APP-INPUT-FOCUS if input focus was gained or lost, and SDL-APP-ACTIVE if the application was iconified, GAIN is 0, or restored GAIN is 1.