LUS Cleanup: Fixes SDL axis handling. (#1220)

* Fixes SDL axis handling.

* Removes sensitivities from LUS

Should be a game specific feature.

* Updates Wii U Controllers to remove sensitivity

Also loads legacy controller profiles.

* Fixes memory leak in gfx_dxgi_get_key_name

Also fixes issue where wchars would be returned in dxgi when getting a key name.
This commit is contained in:
Kenix3 2022-08-16 21:53:45 -04:00 committed by GitHub
commit d09172d74d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 104 additions and 123 deletions

View file

@ -720,9 +720,9 @@ void ThrowIfFailed(HRESULT res, HWND h_wnd, const char *message) {
}
const char* gfx_dxgi_get_key_name(int scancode) {
TCHAR* Text = new TCHAR[64];
GetKeyNameText(scancode << 16, Text, 64);
return (char*) Text;
static char text[64];
GetKeyNameTextA(scancode << 16, text, 64);
return text;
}
extern "C" struct GfxWindowManagerAPI gfx_dxgi_api = {