Home | History | Annotate | Download | only in xquartz

Lines Matching defs:valuators

406 static void DarwinPrepareValuators(DeviceIntPtr pDev, int *valuators, ScreenPtr screen,
420 valuators[0] = pointer_x;
421 valuators[1] = pointer_y;
422 valuators[2] = 0;
423 valuators[3] = 0;
424 valuators[4] = 0;
427 valuators[0] = XQUARTZ_VALUATOR_LIMIT * (pointer_x / (float)screenInfo.screens[0]->width);
428 valuators[1] = XQUARTZ_VALUATOR_LIMIT * (pointer_y / (float)screenInfo.screens[0]->height);
429 valuators[2] = XQUARTZ_VALUATOR_LIMIT * pressure;
430 valuators[3] = XQUARTZ_VALUATOR_LIMIT * tilt_x;
431 valuators[4] = XQUARTZ_VALUATOR_LIMIT * tilt_y;
433 //DEBUG_LOG("Pointer (%f, %f), Valuators: {%d,%d,%d,%d,%d}\n", pointer_x, pointer_y,
434 // valuators[0], valuators[1], valuators[2], valuators[3], valuators[4]);
442 int valuators[5];
489 DarwinPrepareValuators(pDev, valuators, screen, pointer_x, pointer_y, pressure, tilt_x, tilt_y);
492 valuator_mask_set_range(&mask, 0, (pDev == darwinTabletCurrent) ? 5 : 2, valuators);
519 int valuators[5];
534 DarwinPrepareValuators(pDev, valuators, screen, pointer_x, pointer_y, 0.0f, 0.0f, 0.0f);
537 valuator_mask_set_range(&mask, 0, 5, valuators);