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