Lines Matching defs:buttons
164 priv->buttons = xf86SetIntOption(pInfo->options, "Buttons", 0);
165 if (priv->buttons == 0) {
166 priv->buttons = DFLTBUTTONS;
180 "%s: ZAxisMapping: buttons %d and %d\n",
187 if (priv->negativeZ > priv->buttons) {
188 priv->buttons = priv->negativeZ;
191 if (priv->positiveZ > priv->buttons) {
192 priv->buttons = priv->positiveZ;
206 "%s: WAxisMapping: buttons %d and %d\n",
213 if (priv->negativeW > priv->buttons) {
214 priv->buttons = priv->negativeW;
217 if (priv->positiveW > priv->buttons) {
218 priv->buttons = priv->positiveW;
344 xf86Msg(buttons_from, "%s: Buttons: %d\n", pInfo->name, priv->buttons);
432 min(priv->buttons, NBUTTONS),
640 int buttons = priv->lastButtons;
651 buttons &= ~(1 << event->value);
653 buttons));
656 buttons |= (1 << event->value);
658 buttons));
721 buttons &= ~(priv->negativeZ | priv->positiveZ);
731 buttons |= zbutton;
736 buttons &= ~(priv->negativeW | priv->positiveW);
746 buttons |= wbutton;
765 if (priv->lastButtons != buttons) {
767 wsSendButtons(pInfo, buttons);
771 buttons &= ~zbutton;
772 wsSendButtons(pInfo, buttons);
797 wsSendButtons(InputInfoPtr pInfo, int buttons)
804 if ((mask & priv->lastButtons) != (mask & buttons)) {
806 (buttons & mask) != 0)) {
808 button, (buttons & mask) != 0,
811 button, (buttons & mask) != 0))
815 priv->lastButtons = buttons;