lsteamclient: Convert glyph paths in new ISteamInput005 methods

CW-Bug-Id: #19517
This commit is contained in:
Andrew Eikum 2021-10-08 11:09:30 -05:00
parent 4b9b102b31
commit f9eef72c88
18 changed files with 234 additions and 109 deletions

View file

@ -25,8 +25,6 @@ WINE_DEFAULT_DEBUG_CHANNEL(steamclient);
char g_tmppath[PATH_MAX];
static char *controller_glyphs[512]; /* at least k_EControllerActionOrigin_Count */
static CRITICAL_SECTION steamclient_cs = { NULL, -1, 0, 0, 0, 0 };
static HANDLE steam_overlay_event;
@ -234,19 +232,6 @@ void steamclient_free_stringlist(const char **out)
}
}
const char *steamclient_isteamcontroller_getglyph(int origin, const char *lin_path)
{
if(!lin_path)
return NULL;
if(!controller_glyphs[origin])
controller_glyphs[origin] = HeapAlloc(GetProcessHeap(), 0, PATH_MAX);
steamclient_unix_path_to_dos_path(1, lin_path, controller_glyphs[origin], PATH_MAX, 0);
return controller_glyphs[origin];
}
#ifdef __linux__
static const uint32 vk_to_xkeysym[0xFF] = {
0, /* 0x0 Undefined */