Lines Matching refs:dmxLocal

87     if (!dmxLocal->history)  in dmxPointerGetMotionEvents()
89 for (i = dmxLocal->head; i != dmxLocal->tail;) { in dmxPointerGetMotionEvents()
90 if (dmxLocal->history[OFFSET(i, 0)] >= stop) in dmxPointerGetMotionEvents()
92 if (dmxLocal->history[OFFSET(i, 0)] >= start) { in dmxPointerGetMotionEvents()
94 c[OFFSET(count, j)] = dmxLocal->history[OFFSET(i, j)]; in dmxPointerGetMotionEvents()
115 if (!dmxLocal->history) { in dmxPointerPutMotionEvent()
116 dmxLocal->history = xallocarray(numAxes + 1, in dmxPointerPutMotionEvent()
117 sizeof(*dmxLocal->history) * DMX_MOTION_SIZE); in dmxPointerPutMotionEvent()
118 dmxLocal->head = 0; in dmxPointerPutMotionEvent()
119 dmxLocal->tail = 0; in dmxPointerPutMotionEvent()
120 dmxLocal->valuators = calloc(sizeof(*dmxLocal->valuators), numAxes); in dmxPointerPutMotionEvent()
123 if (++dmxLocal->tail >= DMX_MOTION_SIZE) in dmxPointerPutMotionEvent()
124 dmxLocal->tail = 0; in dmxPointerPutMotionEvent()
125 if (dmxLocal->head == dmxLocal->tail) in dmxPointerPutMotionEvent()
126 if (++dmxLocal->head >= DMX_MOTION_SIZE) in dmxPointerPutMotionEvent()
127 dmxLocal->head = 0; in dmxPointerPutMotionEvent()
130 dmxLocal->history[OFFSET(dmxLocal->tail, 0)] = time; in dmxPointerPutMotionEvent()
137 dmxLocal->history[OFFSET(dmxLocal->tail, i + 1)] in dmxPointerPutMotionEvent()
138 = dmxLocal->valuators[i]; in dmxPointerPutMotionEvent()
140 dmxLocal->history[OFFSET(dmxLocal->tail, i + 1)] = 0; in dmxPointerPutMotionEvent()
144 dmxLocal->history[OFFSET(dmxLocal->tail, i + i)] in dmxPointerPutMotionEvent()
146 dmxLocal->valuators[i] = v[i - firstAxis]; in dmxPointerPutMotionEvent()