Lines Matching refs:key1
75 int key1;
88 int keycode, key1, key2;
93 key1 = keypad->keycodes[keycode];
99 if (keypad->key1 && key1 != keypad->key1 && key2 != keypad->key1)
100 input_report_key(input_dev, keypad->key1, 0);
102 if (keypad->key2 && key1 != keypad->key2 && key2 != keypad->key2)
105 input_report_key(input_dev, key1, 1);
108 keypad->key1 = key1;
112 if (keypad->key1 && key1 != keypad->key1)
113 input_report_key(input_dev, keypad->key1, 0);
115 if (keypad->key2 && key1 != keypad->key2)
118 input_report_key(input_dev, key1, 1);
120 keypad->key1 = key1;
124 input_report_key(input_dev, keypad->key1, 0);
127 keypad->key1 = keypad->key2 = 0;