[Ohrrpgce] SVN: teeemcee/11679 gfx_sdl: fix two bugs that both broke capslock and numlock and caused pa

subversion at HamsterRepublic.com subversion at HamsterRepublic.com
Sat Apr 4 05:23:06 PDT 2020


teeemcee
2020-04-04 05:23:06 -0700 (Sat, 04 Apr 2020)
539
gfx_sdl: fix two bugs that both broke capslock and numlock and caused pad numpad remapping

Part of bug #45

The bugs are entirely independent:

1) SDL 1.2 on Window has a bug where if capslock or numlock are on when the
   program starts they appear off, and will always be reversed. Work around by
   getting real state with the winapi
2) We initialised the keybdstate array to zero, so capslock and numlock appeared
   off until they were pressed for the first time on non-Windows OSes.

Bad numlock state leads to bad numpad remapping.
---
U   wip/gfx_sdl.bas
U   wip/gfx_sdl2.bas
U   wip/whatsnew.txt


More information about the Ohrrpgce mailing list