MCPcopy Create free account
hub / github.com/MayaPosch/NymphCast / input

Method input

src/server/gui/core/guis/GuiMsgBox.cpp:66–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64}
65
66bool 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
85void GuiMsgBox::onSizeChanged()
86{

Callers

nothing calls this directly

Calls 3

getDeviceIdMethod · 0.80
isConfiguredMethod · 0.80
isMappedToMethod · 0.80

Tested by

no test coverage detected