ID:110896
 
BYOND Version:480
Operating System:Windows 7 Ultimate
Web Browser:Chrome 10.0.648.151
Applies to:Dream Seeker
Status: Deferred

This issue may be low priority or very difficult to fix, and has been put on the back burner for the time being.
Descriptive Problem Summary:
When you hold down a numpad key(for movement, as an example) and activate Num Lock, releasing the movement key will not halt movement.

Numbered Steps to Reproduce Problem:
1. Hold down numpad 8 with Num Lock off.
2. Turn on Num Lock
3. Release numpad 8
4. Watch as you continue moving Norh

Code Snippet (if applicable) to Reproduce Problem: n/a

Expected Results:
Movement halts

Actual Results:
Movement continues, until key is tapped again

Does the problem occur:
Every time? Or how often? every time
In other games? yep
In other user accounts? yep
On other computers? yep

When does the problem NOT occur?
n/a

Did the problem NOT occur in any earlier versions? If so, what was the last version that worked? (Visit http://www.byond.com/download/build to download old versions for testing.) n/a

Workarounds:
n/a
Unfortunately this is not trivial to fix. We're beholden to the Windows API to tell if a key is still down or not, and Windows believes the key is down in this case. I tried to come up with a workaround but failed.
You can't read numlocks internally?
I'm sure we can read the state of the numlock key. I just don't know of a way to access the direct hardware state of the keyboard and convert that to virtual keys. As far as Windows is concerned, the virtual key that was pressed is still being held down.