Lines Matching defs:button
48 int input_x = 0, scroll = 0, key = 0, button = -1;
110 if (button == -1) { /* Input box selected */
173 switch (button) {
175 button = 1; /* Indicates "Cancel" button is selected */
179 button = -1; /* Indicates input box is selected */
185 button = 0; /* Indicates "OK" button is selected */
193 switch (button) {
195 button = 0; /* Indicates "OK" button is selected */
199 button = 1; /* Indicates "Cancel" button is selected */
203 button = -1; /* Indicates input box is selected */
213 return (button == -1 ? 0 : button);