mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-08-20 21:33:40 -07:00
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:
parent
6b0338a37d
commit
d09172d74d
9 changed files with 104 additions and 123 deletions
|
@ -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 = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue