Home | History | Annotate | Download | only in wsmoused

Lines Matching defs:Modes

82 static struct mode_bootstrap *Modes[MAX_MODES];
119 "usage: %s [-d device] [-f config_file] [-m modes] [-n]\n",
301 * appropriate callback is fired for all attached modes. If the polls
335 for (i = 0; i < MAX_MODES && Modes[i] != NULL; i++)
336 if (Modes[i]->mb_wscons_event != NULL)
337 Modes[i]->mb_wscons_event(event, 1);
341 for (i = 0; i < MAX_MODES && Modes[i] != NULL; i++)
342 if (Modes[i]->mb_wscons_event != NULL)
343 Modes[i]->mb_wscons_event(event, 0);
362 for (i = 0; i < MAX_MODES && Modes[i] != NULL; i++)
363 if (Modes[i]->mb_wsmouse_event != NULL)
364 Modes[i]->mb_wsmouse_event(event);
366 for (i = 0; i < MAX_MODES && Modes[i] != NULL; i++)
367 if (Modes[i]->mb_poll_timeout != NULL)
368 Modes[i]->mb_poll_timeout();
404 /* Attaches a mode to the list of active modes, based on its name.
414 if (Modes[i] == NULL) {
419 log_warnx("modes table full; cannot register `%s'", name);
434 Modes[pos] = mb;
440 log_warnx("unknown mode `%s' (see the `modes' directive)", name);
446 /* Attaches all modes given in the whitespace separated string `list'.
447 * A fatal error is produced if no active modes can be attached. */
454 /* Attach all requested modes */
455 (void)memset(&Modes, 0, sizeof(struct mode_bootstrap *) * MAX_MODES);
463 log_errx(EXIT_FAILURE, "no active modes found; exiting...");
468 /* Detaches a mode from the active modes list based on its name. */
476 mb = Modes[i];
486 Modes[i] = NULL;
492 log_warnx("unknown mode `%s' (see the `modes' directive)", name);
497 /* Detaches all active modes. */
503 for (i = 0; i < MAX_MODES && Modes[i] != NULL; i++)
504 detach_mode(Modes[i]->mb_name);
554 case 'm': /* List of modes to activate */
581 /* Initialize mouse information and attach modes */
590 attach_modes(block_get_propval(conf, "modes", "selection"));