[SDL] getting mouse-responses while in max_priority mode

Christoph Lehmann christoph.lehmann at gmx.ch
Thu May 8 06:23:01 PDT 2003


Hi

we have some code, which shows stimuli in max_priority mode and which
also should be able to get mouse-response events to log them.

unfortunately, max_priority disables any mouse-events (while lpt polling
is possible...)

max_priority was set in the posix_maxpriority.c file 
with a  sched_setscheduler() call:

int set_self_policy_priority( int policy, int priority ) {
  struct sched_param params;

  params.sched_priority = priority;
  return sched_setscheduler(0,policy,&params);
}

what do we need to change, to have mouse-events enabled during
max_priority.

Thanks a lot for any help

Christoph
-- 
Christoph Lehmann <christoph.lehmann at gmx.ch>





More information about the SDL mailing list