Enabled Keyboard.enableRepeatEvents in GuiRenderSettings
This commit is contained in:
@@ -50,6 +50,8 @@ public class GuiRenderSettings extends GuiScreen {
|
|||||||
@Override
|
@Override
|
||||||
public void initGui() {
|
public void initGui() {
|
||||||
if(!initialized) {
|
if(!initialized) {
|
||||||
|
Keyboard.enableRepeatEvents(true);
|
||||||
|
|
||||||
rendererDropdown = new GuiDropdown<RendererSettings>(GuiConstants.RENDER_SETTINGS_RENDERER_DROPDOWN,
|
rendererDropdown = new GuiDropdown<RendererSettings>(GuiConstants.RENDER_SETTINGS_RENDERER_DROPDOWN,
|
||||||
fontRendererObj, 0, 0, 200, 5);
|
fontRendererObj, 0, 0, 200, 5);
|
||||||
rendererDropdown.addSelectionListener(new RendererDropdownListener());
|
rendererDropdown.addSelectionListener(new RendererDropdownListener());
|
||||||
@@ -486,4 +488,10 @@ public class GuiRenderSettings extends GuiScreen {
|
|||||||
yRes.moveCursorBy(0); //This causes the Aspect Ratio to be recalculated based on the Y Resolution
|
yRes.moveCursorBy(0); //This causes the Aspect Ratio to be recalculated based on the Y Resolution
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onGuiClosed() {
|
||||||
|
Keyboard.enableRepeatEvents(false);
|
||||||
|
super.onGuiClosed();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user