| 64 | } |
| 65 | |
| 66 | bool GuiMsgBox::input(InputConfig* config, Input input) |
| 67 | { |
| 68 | // special case for when GuiMsgBox comes up to report errors before anything has been configured |
| 69 | if(config->getDeviceId() == DEVICE_KEYBOARD && !config->isConfigured() && input.value && |
| 70 | (input.id == SDLK_RETURN || input.id == SDLK_ESCAPE || input.id == SDLK_SPACE)) |
| 71 | { |
| 72 | mAcceleratorFunc(); |
| 73 | return true; |
| 74 | } |
| 75 | |
| 76 | if(mAcceleratorFunc && config->isMappedTo("b", input) && input.value != 0) |
| 77 | { |
| 78 | mAcceleratorFunc(); |
| 79 | return true; |
| 80 | } |
| 81 | |
| 82 | return GuiComponent::input(config, input); |
| 83 | } |
| 84 | |
| 85 | void GuiMsgBox::onSizeChanged() |
| 86 | { |
nothing calls this directly
no test coverage detected