From 303d173bf6c974d8a41e022962d95b8eb05c5067 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Thu, 27 Oct 2022 12:51:15 +0200 Subject: [PATCH] mousewheel now works in dialog lists --- dialogs.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/dialogs.cpp b/dialogs.cpp index 36f51cec..637d3a86 100644 --- a/dialogs.cpp +++ b/dialogs.cpp @@ -848,6 +848,16 @@ EX namespace dialog { return; } } + if(sym == PSEUDOKEY_WHEELUP && list_actual_size) { + sym = 0; + list_skip -= 30; + highlight_text = "//missing"; + } + if(sym == PSEUDOKEY_WHEELDOWN && list_actual_size) { + sym = 0; + list_skip += 30; + highlight_text = "//missing"; + } if(DKEY == SDLK_PAGEDOWN) { uni = sym = 0; for(int i=0; i