Lines Matching refs:buttons
179 event.buttons = event_buffer[0] & 3;
286 event.buttons |= ((event_buffer[0] ^ event_buffer[3]) & 0x01);
289 event.buttons |= ((event_buffer[0] ^ event_buffer[3]) & 0x01) << 2;
293 // This packet includes extended buttons state. The state is
294 // only reported once when one of the buttons is pressed or
295 // released, so we must keep track of the buttons state.
303 // Even buttons are in the X byte
313 event.buttons |= sTouchpadInfo.extendedButtonsState
371 TRACE("SYNAPTICS: four buttons %2x\n", val[2] >> 3 & 1);
389 TRACE("SYNAPTICS: clickpad buttons: %x\n", sTouchpadInfo.capClickPadButtonCount);
403 // buttons.
410 TRACE("SYNAPTICS: extended buttons %2x\n", val[1] >> 4 & 15);
431 // Workaround for Thinkpad use of the extended buttons: they are
432 // used as buttons for the trackpoint, so they should be reported
433 // as buttons 0, 1, 2 rather than 3, 4, 5.
434 TRACE("SYNAPTICS: alternate buttons %2x\n", val[0] >> 0 & 1);