From 95bc966da3a545a1be908f0ca72588c304d18836 Mon Sep 17 00:00:00 2001 From: Bobby Dilley Date: Fri, 29 Dec 2023 14:16:50 +0000 Subject: [PATCH] Fix hotd key repeat issue --- src/lindbergh/graphics.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/lindbergh/graphics.c b/src/lindbergh/graphics.c index 96f0876..cdb539c 100644 --- a/src/lindbergh/graphics.c +++ b/src/lindbergh/graphics.c @@ -86,6 +86,14 @@ FGAPI void FGAPIENTRY glutGameModeString(const char *string) } } +/** + * Stop the house of the dead games turning keyboard repeating off. + */ +int XAutoRepeatOff(Display *display) +{ + return 0; +} + Window XCreateWindow(Display *display, Window parent, int x, int y, unsigned int width, unsigned int height, unsigned int border_width, int depth, unsigned int class, Visual *visual, unsigned long valueMask, XSetWindowAttributes *attributes) {