Lines Matching refs:buttons
29 unsigned short buttons;
35 buttons = ~le16_to_cpup((__le16 *)(res + 8));
38 (buttons & 0x0010 ? -1 : 0) + (buttons & 0x0020 ? 1 : 0));
40 (buttons & 0x0040 ? -1 : 0) + (buttons & 0x0080 ? 1 : 0));
42 (buttons & 0x1000 ? -1 : 0) + (buttons & 0x2000 ? 1 : 0));
44 (buttons & 0x4000 ? -1 : 0) + (buttons & 0x8000 ? 1 : 0));
46 input_report_key(dev, BTN_C, buttons & 0x0001);
47 input_report_key(dev, BTN_B, buttons & 0x0002);
48 input_report_key(dev, BTN_A, buttons & 0x0004);
49 input_report_key(dev, BTN_START, buttons & 0x0008);
50 input_report_key(dev, BTN_Z, buttons & 0x0100);
51 input_report_key(dev, BTN_Y, buttons & 0x0200);
52 input_report_key(dev, BTN_X, buttons & 0x0400);
53 input_report_key(dev, BTN_SELECT, buttons & 0x0800);