Lines Matching defs:button
50 int input_x = 0, scroll = 0, key = 0, button = -1;
126 if (button == -1) { /* Input box selected */
189 switch (button) {
191 button = 1; /* Indicates "Cancel" button is selected */
195 button = -1; /* Indicates input box is selected */
201 button = 0; /* Indicates "OK" button is selected */
209 switch (button) {
211 button = 0; /* Indicates "OK" button is selected */
215 button = 1; /* Indicates "Cancel" button is selected */
219 button = -1; /* Indicates input box is selected */
229 return (button == -1 ? 0 : button);