Announcement: Be excellent to each other.


Caravel Forum : DROD Boards : Bugs : Regression?: Whether or not directions work depends on numlock
New Topic New Poll Post Reply
Poster Message
Xindaris
Level: Smitemaster
Avatar
Rank Points: 1001
Registered: 06-13-2015
IP: Logged
icon Regression?: Whether or not directions work depends on numlock (0)  
This is using the latest beta for 5.1.1.

In all previous versions of DROD, moving with the numpad didn't depend on whether numlock was pressed or not. Now I'm getting a weird behavior where the diagonal directions always work, but the orthogonal ones only work if I'm "typing numbers" (I think that's numlock on). This only seems to be true while actually going through a room; navigating between rooms in the editor doesn't have this problem.

____________________________
109th Skywatcher

Here are some links to Things!
Click here to view the secret text

11-18-2020 at 02:21 AM
View Profile Send Private Message to User Show all user's posts High Scores This architect's holds Quote Reply
mrimer
Level: Legendary Smitemaster
Avatar
Rank Points: 4720
Registered: 02-04-2003
IP: Logged
icon Re: Regression?: Whether or not directions work depends on numlock (0)  
I'm guessing this is an SDL vs SDL2 issue in increased specificity in command key mappings.

We should check whether the pre-existing Steam version, which uses SDL2, also has this issue.

____________________________
Gandalf? Yes... That's what they used to call me.
Gandalf the Grey. That was my name.
I am Gandalf the White.
And I come back to you now at the turn of the tide.
11-18-2020 at 12:35 PM
View Profile Send Private Message to User Send Email to User Show all user's posts High Scores This architect's holds Quote Reply
skell
Level: Legendary Smitemaster
Avatar
Rank Points: 3500
Registered: 12-28-2004
IP: Logged
icon Re: Regression?: Whether or not directions work depends on numlock (+1)  
It's the same in Steam version.

It appears it will be fixed in SDL 2.0.14 - https://bugzilla.libsdl.org/show_bug.cgi?id=5274

Until then we could maybe add some magic code to auto translate those events, while tracking numlock state and such, build from SDL 2.0.14 sources ourselves or leave it as-is.

I personally don't consider this a bug - in almost every other application numpad behavior changes depending on numlock state so I've never had an issue with this.

____________________________
My website | Facebook | Twitter

[Last edited by skell at 11-18-2020 01:33 PM]
11-18-2020 at 01:09 PM
View Profile Send Private Message to User Send Email to User Visit Homepage Show all user's posts High Scores This architect's holds Quote Reply
Xindaris
Level: Smitemaster
Avatar
Rank Points: 1001
Registered: 06-13-2015
IP: Logged
icon Re: Regression?: Whether or not directions work depends on numlock (0)  
I agree it isn't a big deal since anyone can just try pushing numlock and fix it, but it is slightly weird, especially since numlock still doesn't matter for navigating rooms in the editor.

____________________________
109th Skywatcher

Here are some links to Things!
Click here to view the secret text

11-18-2020 at 04:17 PM
View Profile Send Private Message to User Show all user's posts High Scores This architect's holds Quote Reply
skell
Level: Legendary Smitemaster
Avatar
Rank Points: 3500
Registered: 12-28-2004
IP: Logged
icon Re: Regression?: Whether or not directions work depends on numlock (+1)  
That's because in some places there is code that handles those two cases.

Btw, somthing similar was reported previously here and here.

____________________________
My website | Facebook | Twitter
11-18-2020 at 06:44 PM
View Profile Send Private Message to User Send Email to User Visit Homepage Show all user's posts High Scores This architect's holds Quote Reply
Xindaris
Level: Smitemaster
Avatar
Rank Points: 1001
Registered: 06-13-2015
IP: Logged
icon Re: Regression?: Whether or not directions work depends on numlock (0)  
Right, entering numbers with the numpad has always not really worked right in DROD's textbox-type interfaces. I've noticed that a lot while scripting things that needed to do calculations, but I do consider that a separate thing from this, personally.

____________________________
109th Skywatcher

Here are some links to Things!
Click here to view the secret text

11-18-2020 at 10:05 PM
View Profile Send Private Message to User Show all user's posts High Scores This architect's holds Quote Reply
New Topic New Poll Post Reply
Caravel Forum : DROD Boards : Bugs : Regression?: Whether or not directions work depends on numlock
Surf To:


Forum Rules:
Can I post a new topic? No
Can I reply? No
Can I read? Yes
HTML Enabled? No
UBBC Enabled? Yes
Words Filter Enable? No

Contact Us | CaravelGames.com

Powered by: tForum tForumHacks Edition b0.98.8
Originally created by Toan Huynh (Copyright © 2000)
Enhanced by the tForumHacks team and the Caravel team.