From ffcf7853cb5f8f438b150385a8f114ee09ea10c9 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sun, 14 Aug 2022 19:24:24 +0200 Subject: [PATCH] nilrider:: compile in SDL2 --- rogueviz/nilrider/nilrider.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rogueviz/nilrider/nilrider.cpp b/rogueviz/nilrider/nilrider.cpp index 3e39b9ee..08d9a727 100644 --- a/rogueviz/nilrider/nilrider.cpp +++ b/rogueviz/nilrider/nilrider.cpp @@ -534,7 +534,11 @@ void nilrider_keys() { change_default_key('a', 16 + 1); change_default_key('w', 16 + 2); change_default_key('d', 16 + 3); + #if CAP_SDL2 + change_default_key(SDL_SCANCODE_LCTRL, 16 + 4); + #else change_default_key(SDLK_LCTRL, 16 + 4); + #endif change_default_key('p', 16 + 5); change_default_key('b', 16 + 6); change_default_key('r', 16 + 7);