Interrupt / systemshock

Shockolate - A minimalist and cross platform System Shock source port.
GNU General Public License v3.0
807 stars 65 forks source link

Fix automap scrolling #205

Closed donnierussellii closed 5 years ago

donnierussellii commented 5 years ago

Symptoms: NSWE buttons and scrolling keys weren't working.

Code that checks which NSWE button pressed was faulty. Input polling was limited to mouse movements and not clicking. This caused scrolling function to not be called when clicking.

Keys weren't working because function that scrolls map was returning before actually checking keys. Working keys made map jump because time elapsed calculation was not limited.

Map can be scrolled with cursor or numeric keypad keys.