Lines Matching refs:STATEP
59 STATEP->nbuttons = 0; /* Don't know. */ in VUID_OPEN()
73 if ((STATEP->buttons&mask) != (STATEP->oldbuttons&mask)) in vuidm5p_sendButtonEvent()
75 (STATEP->buttons & mask ? 1 : 0)); in vuidm5p_sendButtonEvent()
91 switch (STATEP->state) { in vuidm5p()
104 STATEP->state = LOGI_BUTTON; in vuidm5p()
105 STATEP->deltax = STATEP->deltay = 0; in vuidm5p()
106 STATEP->buttons = (~code) & LOGI_BMASK; in vuidm5p()
117 STATEP->state = LOGI_START; in vuidm5p()
122 STATEP->deltax += (signed char)code; in vuidm5p()
123 STATEP->state = LOGI_DELTA_X1; in vuidm5p()
132 STATEP->state = LOGI_START; in vuidm5p()
137 STATEP->deltay += (signed char)code; in vuidm5p()
138 STATEP->state = LOGI_DELTA_Y1; in vuidm5p()
147 STATEP->state = LOGI_START; in vuidm5p()
152 STATEP->deltax += (signed char)code; in vuidm5p()
153 STATEP->state = LOGI_DELTA_X2; in vuidm5p()
162 STATEP->state = LOGI_START; in vuidm5p()
167 STATEP->deltay += (signed char)code; in vuidm5p()
168 STATEP->state = LOGI_START; in vuidm5p()
171 if (STATEP->deltax) in vuidm5p()
174 (uchar_t)LOC_X_ABSOLUTE, STATEP->deltax); in vuidm5p()
176 if (STATEP->deltay) in vuidm5p()
179 (uchar_t)LOC_Y_ABSOLUTE, STATEP->deltay); in vuidm5p()
181 STATEP->deltax = STATEP->deltay = 0; in vuidm5p()
184 if (STATEP->buttons != STATEP->oldbuttons) { in vuidm5p()
189 STATEP->oldbuttons = STATEP->buttons; in vuidm5p()