Lines Matching refs:state
51 MODULE_PARM_DESC(report_undeciphered, "Report undeciphered multi-touch state field using a MSC_RAW event");
155 static void magicmouse_emit_buttons(struct magicmouse_sc *msc, int state)
168 if (state == 0) {
171 state = last_state;
175 state = 1;
177 state = 2;
179 state = 4;
182 input_report_key(msc->input, BTN_MIDDLE, state & 4);
185 input_report_key(msc->input, BTN_LEFT, state & 1);
186 input_report_key(msc->input, BTN_RIGHT, state & 2);
188 if (state != last_state)
195 int id, x, y, size, orientation, touch_major, touch_minor, state, down;
206 state = tdata[7] & TOUCH_STATE_MASK;
207 down = state != TOUCH_STATE_NONE;
217 state = tdata[3] & 0xC0;
218 down = state == 0x80;
227 state = tdata[8] & TOUCH_STATE_MASK;
228 down = state != TOUCH_STATE_NONE;
247 switch (state) {