Beispiel #1
0
static void
Idle2(void)
{
	int	i;

	GfctrlMouseGetCurrent(&mouseInfo);

	/* Check for a mouse button pressed */
	for (i = 0; i < 3; i++) {
		if (mouseInfo.edgedn[i]) {
			MouseCalAutomaton();
			return;
		}
	}
}
Beispiel #2
0
static void
Idle2(void)
{
    int	i;

    GfctrlMouseGetCurrentState(&MouseInfo);

    /* Check for a mouse button pressed */
    for (i = 0; i < 3; i++) {
	if (MouseInfo.edgedn[i]) {
	    MouseCalAutomaton();
	    return;
	}
    }

    /* Let CPU take breath (and fans stay at low and quiet speed) */
    GfSleep(0.001);
}