mirror of
https://git.suyu.dev/suyu/Yucom.git
synced 2025-12-21 21:26:03 +01:00
lsteamclient: Convert glyph paths in new ISteamInput005 methods
CW-Bug-Id: #19517
This commit is contained in:
parent
4b9b102b31
commit
f9eef72c88
18 changed files with 234 additions and 109 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue