Lines Matching refs:STATEP
57 STATEP->nbuttons = 2; in VUID_OPEN()
67 if ((STATEP->buttons == 0x30) && (!STATEP->oldbuttons)) { in vuidm3p_sendButtonEvent()
74 } else if ((!STATEP->buttons) && (STATEP->oldbuttons == 0x30)) { in vuidm3p_sendButtonEvent()
89 if ((STATEP->buttons & mask) != (STATEP->oldbuttons & mask)) in vuidm3p_sendButtonEvent()
91 (STATEP->buttons & mask ? 1 : 0)); in vuidm3p_sendButtonEvent()
110 switch (STATEP->state) { in vuidm3p()
122 STATEP->deltax = STATEP->deltay = 0; in vuidm3p()
128 STATEP->buttons = code & 0x30; in vuidm3p()
130 if (STATEP->buttons != STATEP->oldbuttons) { in vuidm3p()
135 STATEP->oldbuttons = STATEP->buttons; in vuidm3p()
142 STATEP->deltax = (signed char)((code & 0x03) << 6); in vuidm3p()
148 STATEP->deltay = (signed char)((code & 0x0c) << 4); in vuidm3p()
153 STATEP->state = MOUSE_BUTTON; in vuidm3p()
163 STATEP->state = MOUSE_START; in vuidm3p()
167 STATEP->deltax |= code & 0x3f; in vuidm3p()
168 STATEP->state = MOUSE_DELTA_X; in vuidm3p()
177 STATEP->state = MOUSE_START; in vuidm3p()
181 STATEP->deltay |= code & 0x3f; in vuidm3p()
186 if (STATEP->deltax) in vuidm3p()
189 STATEP->deltax); in vuidm3p()
191 if (STATEP->deltay) in vuidm3p()
194 -STATEP->deltay); in vuidm3p()
196 STATEP->deltax = STATEP->deltay = 0; in vuidm3p()