Fix dumb typo.
Improve performance of syscall resolving.

This was actually kinda slow (noticeably) in God Eater Burst.
Revert c8431493be
Merge pull request #2663 from raven02/patch-6

Revert c843149 that causes artifact in non-buffered rendering mode in some games
Improve performance of ScanForFunctions().

Mostly affects games with a lot of modules and exports.
Fix texture misalignment & distortion in multiple games
Add rapid fire ctrl interface, minor cleanup.
Properly send the right analog to the game.

I don't think this was actually working before.
Add keymap support for alt/shift/ctrl on Windows.

WM_KEYDOWN only gets VK_SHIFT, not L or R.  We could detect which on
press, but not on release.  It's simpler to just resend both.
Add a rapid fire virtual key, like before.
Make it easier to test the pause button.
Make pause/speed virtual buttons work again.

Fixes #2669.
Remove some unused keyboard code, avoid confusion.
Remove some no longer used xinput stuff.
Simplify the HDRemaster struct, eliminating the need for the g_MemoryEnd variable.
Fix bad autotests commit.
Fix memory sizes for Eiyuu Densetsu HD Remaster games, thanks to @Darth1701.
Merge pull request #2676 from thedax/hdRemasterSupport

HDRemaster support: Simplify/tidy the code
Merge pull request #2665 from unknownbrackets/perf

Improve performance of export resolving / module loading
Merge pull request #2672 from unknownbrackets/ctrl-rapid

Add back rapid fire, make it possible to use on other platforms