Lines Matching refs:button
48 int input_x = 0, scroll = 0, key = 0, button = -1; in dialog_inputbox() local
118 if (button == -1) { /* Input box selected */ in dialog_inputbox()
181 switch (button) { in dialog_inputbox()
183 button = 1; /* Indicates "Cancel" button is selected */ in dialog_inputbox()
187 button = -1; /* Indicates input box is selected */ in dialog_inputbox()
193 button = 0; /* Indicates "OK" button is selected */ in dialog_inputbox()
201 switch (button) { in dialog_inputbox()
203 button = 0; /* Indicates "OK" button is selected */ in dialog_inputbox()
207 button = 1; /* Indicates "Cancel" button is selected */ in dialog_inputbox()
211 button = -1; /* Indicates input box is selected */ in dialog_inputbox()
221 return (button == -1 ? 0 : button); in dialog_inputbox()