From: Alex C. <aj...@wr...> - 2003-11-11 01:48:33
|
Hi, I'm trying to use Sdlevent to determine whether my app is 'active' and I've run into a problem I can't figure out. It may be a bug, or I may be a clueless newbie, but here it is: From sdlevent.mli: (** The available application states *) type active_state = | MOUSEFOCUS (** The app has mouse coverage *) | INPUTFOCUS (** The app has input focus *) | ACTIVE (** The application is active *) *** SNIP *** type event = | ACTIVE of active_event (** Application loses/gains visibility *) | (*...*) And the problem: # (ACTIVE: active_state);; The constructor ACTIVE expects 1 argument(s), but is here applied to 0 argument(s) It seems that ACTIVE is being interpreted as an 'event' rather than an 'active_state'. Could someone please tell me how I can fix this? Thanks, Alex |