lsteamclient: Move ISteamInput and ISteamController manual thunks.

CW-Bug-Id: #22729
This commit is contained in:
Rémi Bernon 2023-09-30 14:11:35 +02:00 committed by Arkadiusz Hiler
parent 96a26ea211
commit 4d5d6322b0
8 changed files with 193 additions and 297 deletions

View file

@ -214,15 +214,11 @@ SOURCES = \
cppISteamUserStats_STEAMUSERSTATS_INTERFACE_VERSION012.cpp \
cppISteamVideo_STEAMVIDEO_INTERFACE_V001.cpp \
cppISteamVideo_STEAMVIDEO_INTERFACE_V002.cpp \
steamclient_manual_141.cpp \
steamclient_manual_142.cpp \
steamclient_manual_144.cpp \
steamclient_manual_146.cpp \
steamclient_manual_147.cpp \
steamclient_manual_148a.cpp \
steamclient_manual_150.cpp \
steamclient_manual_151.cpp \
steamclient_manual_152.cpp \
steamclient_manual_153a.cpp \
steamclient_manual_common.cpp \
struct_converters_111x.cpp \
@ -291,5 +287,6 @@ SOURCES = \
struct_converters_157.cpp \
struct_converters_158.cpp \
unix_steam_client_manual.cpp \
unix_steam_input_manual.cpp \
unix_steam_utils_manual.cpp \
unixlib_generated.cpp \

View file

@ -1,16 +0,0 @@
#include "unix_private.h"
extern "C"
{
#define SDK_VERSION 1410
#include "steamclient_manual_common.h"
}
#include "cppISteamController_SteamController005.hpp"
void cppISteamController_SteamController005_GetGlyphForActionOrigin( struct cppISteamController_SteamController005_GetGlyphForActionOrigin_params *params )
{
struct u_ISteamController_SteamController005 *iface = (struct u_ISteamController_SteamController005 *)params->linux_side;
params->_ret = iface->GetGlyphForActionOrigin( params->eOrigin );
params->_ret = steamclient_isteamcontroller_getglyph( params->eOrigin, params->_ret );
}

View file

@ -1,16 +0,0 @@
#include "unix_private.h"
extern "C"
{
#define SDK_VERSION 1420
#include "steamclient_manual_common.h"
}
#include "cppISteamController_SteamController006.hpp"
void cppISteamController_SteamController006_GetGlyphForActionOrigin( struct cppISteamController_SteamController006_GetGlyphForActionOrigin_params *params )
{
struct u_ISteamController_SteamController006 *iface = (struct u_ISteamController_SteamController006 *)params->linux_side;
params->_ret = iface->GetGlyphForActionOrigin( params->eOrigin );
params->_ret = steamclient_isteamcontroller_getglyph( params->eOrigin, params->_ret );
}

View file

@ -9,8 +9,6 @@ extern "C" {
#include "cppISteamNetworkingSockets_SteamNetworkingSockets009.hpp"
#include "cppISteamNetworkingMessages_SteamNetworkingMessages002.hpp"
#include "cppISteamNetworkingUtils_SteamNetworkingUtils003.hpp"
#include "cppISteamInput_SteamInput001.hpp"
#include "cppISteamController_SteamController007.hpp"
WINE_DEFAULT_DEBUG_CHANNEL(steamclient);
@ -155,31 +153,3 @@ void cppISteamNetworkingUtils_SteamNetworkingUtils003_SetConfigValue( struct cpp
params->eDataType, params->pArg );
}
}
void cppISteamInput_SteamInput001_GetGlyphForActionOrigin( struct cppISteamInput_SteamInput001_GetGlyphForActionOrigin_params *params )
{
struct u_ISteamInput_SteamInput001 *iface = (struct u_ISteamInput_SteamInput001 *)params->linux_side;
params->_ret = iface->GetGlyphForActionOrigin( params->eOrigin );
params->_ret = steamclient_isteaminput_getglyph( params->eOrigin, params->_ret );
}
void cppISteamInput_SteamInput001_GetGlyphForXboxOrigin( struct cppISteamInput_SteamInput001_GetGlyphForXboxOrigin_params *params )
{
struct u_ISteamInput_SteamInput001 *iface = (struct u_ISteamInput_SteamInput001 *)params->linux_side;
params->_ret = iface->GetGlyphForXboxOrigin( params->eOrigin );
params->_ret = steamclient_isteaminput_getglyph_xbox( params->eOrigin, params->_ret );
}
void cppISteamController_SteamController007_GetGlyphForActionOrigin( struct cppISteamController_SteamController007_GetGlyphForActionOrigin_params *params )
{
struct u_ISteamController_SteamController007 *iface = (struct u_ISteamController_SteamController007 *)params->linux_side;
params->_ret = iface->GetGlyphForActionOrigin( params->eOrigin );
params->_ret = steamclient_isteamcontroller_getglyph( params->eOrigin, params->_ret );
}
void cppISteamController_SteamController007_GetGlyphForXboxOrigin( struct cppISteamController_SteamController007_GetGlyphForXboxOrigin_params *params )
{
struct u_ISteamController_SteamController007 *iface = (struct u_ISteamController_SteamController007 *)params->linux_side;
params->_ret = iface->GetGlyphForXboxOrigin( params->eOrigin );
params->_ret = steamclient_isteaminput_getglyph_xbox( params->eOrigin, params->_ret );
}

View file

@ -1,23 +0,0 @@
#include "unix_private.h"
extern "C"
{
#define SDK_VERSION 1510
#include "steamclient_manual_common.h"
}
#include "cppISteamInput_SteamInput002.hpp"
void cppISteamInput_SteamInput002_GetGlyphForActionOrigin( struct cppISteamInput_SteamInput002_GetGlyphForActionOrigin_params *params )
{
struct u_ISteamInput_SteamInput002 *iface = (struct u_ISteamInput_SteamInput002 *)params->linux_side;
params->_ret = iface->GetGlyphForActionOrigin( params->eOrigin );
params->_ret = steamclient_isteaminput_getglyph( params->eOrigin, params->_ret );
}
void cppISteamInput_SteamInput002_GetGlyphForXboxOrigin( struct cppISteamInput_SteamInput002_GetGlyphForXboxOrigin_params *params )
{
struct u_ISteamInput_SteamInput002 *iface = (struct u_ISteamInput_SteamInput002 *)params->linux_side;
params->_ret = iface->GetGlyphForXboxOrigin( params->eOrigin );
params->_ret = steamclient_isteaminput_getglyph_xbox( params->eOrigin, params->_ret );
}

View file

@ -1,165 +0,0 @@
#include "unix_private.h"
extern "C"
{
#define SDK_VERSION 1520
#include "steamclient_manual_common.h"
}
#include <unordered_map>
#include "cppISteamInput_SteamInput005.hpp"
#include "cppISteamController_SteamController008.hpp"
WINE_DEFAULT_DEBUG_CHANNEL(steamclient);
static void (W_STDCALL *win_EnableActionEventCallbacks)( SteamInputActionEvent_t * );
static void lin_SteamInputActionEventCallbackPointer( SteamInputActionEvent_t *dat )
{
if (win_EnableActionEventCallbacks) win_EnableActionEventCallbacks( dat );
}
void cppISteamInput_SteamInput005_EnableActionEventCallbacks( struct cppISteamInput_SteamInput005_EnableActionEventCallbacks_params *params )
{
struct u_ISteamInput_SteamInput005 *iface = (struct u_ISteamInput_SteamInput005 *)params->linux_side;
win_EnableActionEventCallbacks = params->pCallback;
iface->EnableActionEventCallbacks( params->pCallback ? &lin_SteamInputActionEventCallbackPointer : NULL );
}
/***** convert and cache ISteamInput glyph paths *****/
static const size_t ESteamInputGlyphSize_count = 3;
static std::unordered_map<int /*EInputActionOrigin*/, char *> cached_input_glyphs;
static std::unordered_map<int /*EInputActionOrigin*/, char *> cached_input_glyphs_xbox;
static std::unordered_map<int /*flags*/, std::unordered_map<int /*EInputActionOrigin*/, char *> > cached_input_glyphs_svg;
static std::unordered_map<int /*flags*/, std::unordered_map<int /*EInputActionOrigin*/, char *> > cached_input_glyphs_png[ESteamInputGlyphSize_count];
const char *steamclient_isteaminput_getglyph_png(int origin, int size, int flags, const char *lin_path)
{
if(!lin_path)
return NULL;
if(size >= ESteamInputGlyphSize_count){
ERR("invalid glyph size: %u\n", size);
return NULL;
}
if(cached_input_glyphs_png[size][flags].find(origin) == cached_input_glyphs_png[size][flags].end()){
char *dos_path = (char *)HeapAlloc(GetProcessHeap(), 0, PATH_MAX);
steamclient_unix_path_to_dos_path(1, lin_path, dos_path, PATH_MAX, 0);
cached_input_glyphs_png[size][flags][origin] = dos_path;
}
return cached_input_glyphs_png[size][flags][origin];
}
const char *steamclient_isteaminput_getglyph_svg(int origin, int flags, const char *lin_path)
{
if(!lin_path)
return NULL;
if(cached_input_glyphs_svg[flags].find(origin) == cached_input_glyphs_svg[flags].end()){
char *dos_path = (char *)HeapAlloc(GetProcessHeap(), 0, PATH_MAX);
steamclient_unix_path_to_dos_path(1, lin_path, dos_path, PATH_MAX, 0);
cached_input_glyphs_svg[flags][origin] = dos_path;
}
return cached_input_glyphs_svg[flags][origin];
}
const char *steamclient_isteaminput_getglyph(int origin, const char *lin_path)
{
if(!lin_path)
return NULL;
if(cached_input_glyphs.find(origin) == cached_input_glyphs.end()){
char *dos_path = (char *)HeapAlloc(GetProcessHeap(), 0, PATH_MAX);
steamclient_unix_path_to_dos_path(1, lin_path, dos_path, PATH_MAX, 0);
cached_input_glyphs[origin] = dos_path;
}
return cached_input_glyphs[origin];
}
const char *steamclient_isteaminput_getglyph_xbox(int origin, const char *lin_path)
{
if(!lin_path)
return NULL;
if(cached_input_glyphs_xbox.find(origin) == cached_input_glyphs_xbox.end()){
char *dos_path = (char *)HeapAlloc(GetProcessHeap(), 0, PATH_MAX);
steamclient_unix_path_to_dos_path(1, lin_path, dos_path, PATH_MAX, 0);
cached_input_glyphs_xbox[origin] = dos_path;
}
return cached_input_glyphs_xbox[origin];
}
void cppISteamInput_SteamInput005_GetGlyphPNGForActionOrigin( struct cppISteamInput_SteamInput005_GetGlyphPNGForActionOrigin_params *params )
{
struct u_ISteamInput_SteamInput005 *iface = (struct u_ISteamInput_SteamInput005 *)params->linux_side;
params->_ret = iface->GetGlyphPNGForActionOrigin( params->eOrigin, params->eSize, params->unFlags );
params->_ret = steamclient_isteaminput_getglyph_png( params->eOrigin, params->eSize,
params->unFlags, params->_ret );
}
void cppISteamInput_SteamInput005_GetGlyphSVGForActionOrigin( struct cppISteamInput_SteamInput005_GetGlyphSVGForActionOrigin_params *params )
{
struct u_ISteamInput_SteamInput005 *iface = (struct u_ISteamInput_SteamInput005 *)params->linux_side;
params->_ret = iface->GetGlyphSVGForActionOrigin( params->eOrigin, params->unFlags );
params->_ret = steamclient_isteaminput_getglyph_svg( params->eOrigin, params->unFlags, params->_ret );
}
void cppISteamInput_SteamInput005_GetGlyphForActionOrigin_Legacy( struct cppISteamInput_SteamInput005_GetGlyphForActionOrigin_Legacy_params *params )
{
struct u_ISteamInput_SteamInput005 *iface = (struct u_ISteamInput_SteamInput005 *)params->linux_side;
params->_ret = iface->GetGlyphForActionOrigin_Legacy( params->eOrigin );
params->_ret = steamclient_isteaminput_getglyph( params->eOrigin, params->_ret );
}
void cppISteamInput_SteamInput005_GetGlyphForXboxOrigin( struct cppISteamInput_SteamInput005_GetGlyphForXboxOrigin_params *params )
{
struct u_ISteamInput_SteamInput005 *iface = (struct u_ISteamInput_SteamInput005 *)params->linux_side;
params->_ret = iface->GetGlyphForXboxOrigin( params->eOrigin );
params->_ret = steamclient_isteaminput_getglyph_xbox( params->eOrigin, params->_ret );
}
/***** convert and cache ISteamController glyph paths *****/
static std::unordered_map<int /*EControllerActionOrigin*/, char *> cached_controller_glyphs;
const char *steamclient_isteamcontroller_getglyph(int origin, const char *lin_path)
{
if(!lin_path)
return NULL;
if(cached_controller_glyphs.find(origin) == cached_controller_glyphs.end()){
char *dos_path = (char *)HeapAlloc(GetProcessHeap(), 0, PATH_MAX);
steamclient_unix_path_to_dos_path(1, lin_path, dos_path, PATH_MAX, 0);
cached_controller_glyphs[origin] = dos_path;
}
return cached_controller_glyphs[origin];
}
void cppISteamController_SteamController008_GetGlyphForActionOrigin( struct cppISteamController_SteamController008_GetGlyphForActionOrigin_params *params )
{
struct u_ISteamController_SteamController008 *iface = (struct u_ISteamController_SteamController008 *)params->linux_side;
params->_ret = iface->GetGlyphForActionOrigin( params->eOrigin );
params->_ret = steamclient_isteamcontroller_getglyph( params->eOrigin, params->_ret );
}
void cppISteamController_SteamController008_GetGlyphForXboxOrigin( struct cppISteamController_SteamController008_GetGlyphForXboxOrigin_params *params )
{
struct u_ISteamController_SteamController008 *iface = (struct u_ISteamController_SteamController008 *)params->linux_side;
params->_ret = iface->GetGlyphForXboxOrigin( params->eOrigin );
params->_ret = steamclient_isteaminput_getglyph_xbox( params->eOrigin, params->_ret );
}

View file

@ -10,23 +10,9 @@ extern "C" {
#include "cppISteamNetworkingUtils_SteamNetworkingUtils004.hpp"
#include "cppISteamNetworkingSockets_SteamNetworkingSockets012.hpp"
#include "cppISteamNetworkingFakeUDPPort_SteamNetworkingFakeUDPPort001.hpp"
#include "cppISteamInput_SteamInput006.hpp"
WINE_DEFAULT_DEBUG_CHANNEL(steamclient);
static void (W_STDCALL *win_EnableActionEventCallbacks)( SteamInputActionEvent_t * );
static void u_SteamInputActionEventCallbackPointer( SteamInputActionEvent_t *dat )
{
if (win_EnableActionEventCallbacks) win_EnableActionEventCallbacks( dat );
}
void cppISteamInput_SteamInput006_EnableActionEventCallbacks( struct cppISteamInput_SteamInput006_EnableActionEventCallbacks_params *params )
{
struct u_ISteamInput_SteamInput006 *iface = (struct u_ISteamInput_SteamInput006 *)params->linux_side;
win_EnableActionEventCallbacks = params->pCallback;
iface->EnableActionEventCallbacks( params->pCallback ? &u_SteamInputActionEventCallbackPointer : NULL );
}
void cppISteamNetworkingSockets_SteamNetworkingSockets012_ReceiveMessagesOnConnection( struct cppISteamNetworkingSockets_SteamNetworkingSockets012_ReceiveMessagesOnConnection_params *params )
{
struct u_ISteamNetworkingSockets_SteamNetworkingSockets012 *iface = (struct u_ISteamNetworkingSockets_SteamNetworkingSockets012 *)params->linux_side;
@ -170,32 +156,3 @@ void cppISteamNetworkingUtils_SteamNetworkingUtils004_AllocateMessage( struct cp
u_SteamNetworkingMessage_t_153a *u_ret = iface->AllocateMessage( params->cbAllocateBuffer );
params->_ret = (w_SteamNetworkingMessage_t_153a *)network_message_lin_to_win( u_ret );
}
void cppISteamInput_SteamInput006_GetGlyphPNGForActionOrigin( struct cppISteamInput_SteamInput006_GetGlyphPNGForActionOrigin_params *params )
{
struct u_ISteamInput_SteamInput006 *iface = (struct u_ISteamInput_SteamInput006 *)params->linux_side;
params->_ret = iface->GetGlyphPNGForActionOrigin( params->eOrigin, params->eSize, params->unFlags );
params->_ret = steamclient_isteaminput_getglyph_png( params->eOrigin, params->eSize,
params->unFlags, params->_ret );
}
void cppISteamInput_SteamInput006_GetGlyphSVGForActionOrigin( struct cppISteamInput_SteamInput006_GetGlyphSVGForActionOrigin_params *params )
{
struct u_ISteamInput_SteamInput006 *iface = (struct u_ISteamInput_SteamInput006 *)params->linux_side;
params->_ret = iface->GetGlyphSVGForActionOrigin( params->eOrigin, params->unFlags );
params->_ret = steamclient_isteaminput_getglyph_svg( params->eOrigin, params->unFlags, params->_ret );
}
void cppISteamInput_SteamInput006_GetGlyphForActionOrigin_Legacy( struct cppISteamInput_SteamInput006_GetGlyphForActionOrigin_Legacy_params *params )
{
struct u_ISteamInput_SteamInput006 *iface = (struct u_ISteamInput_SteamInput006 *)params->linux_side;
params->_ret = iface->GetGlyphForActionOrigin_Legacy( params->eOrigin );
params->_ret = steamclient_isteaminput_getglyph( params->eOrigin, params->_ret );
}
void cppISteamInput_SteamInput006_GetGlyphForXboxOrigin( struct cppISteamInput_SteamInput006_GetGlyphForXboxOrigin_params *params )
{
struct u_ISteamInput_SteamInput006 *iface = (struct u_ISteamInput_SteamInput006 *)params->linux_side;
params->_ret = iface->GetGlyphForXboxOrigin( params->eOrigin );
params->_ret = steamclient_isteaminput_getglyph_xbox( params->eOrigin, params->_ret );
}

View file

@ -0,0 +1,192 @@
#include "unix_private.h"
#include <unordered_map>
#include "cppISteamController_SteamController005.hpp"
#include "cppISteamController_SteamController006.hpp"
#include "cppISteamController_SteamController007.hpp"
#include "cppISteamController_SteamController008.hpp"
#include "cppISteamInput_SteamInput001.hpp"
#include "cppISteamInput_SteamInput002.hpp"
#include "cppISteamInput_SteamInput005.hpp"
#include "cppISteamInput_SteamInput006.hpp"
typedef std::unordered_map< uint64_t, char * > glyph_cache;
static glyph_cache input_cache, input_cache_svg, input_cache_png, xbox_cache, controller_cache;
static const char *glyph_cache_lookup( glyph_cache &cache, const char *lin_path, uint16_t origin,
uint32_t flags, uint16_t size )
{
uint64_t key = (uint64_t)flags << 32 | (uint64_t)size << 16 | origin;
if (cache.find( key ) == cache.end())
{
char *dos_path = (char *)HeapAlloc( GetProcessHeap(), 0, PATH_MAX );
steamclient_unix_path_to_dos_path( 1, lin_path, dos_path, PATH_MAX, 0 );
cache[key] = dos_path;
}
return cache[key];
}
/* ISteamController_SteamController005 */
void cppISteamController_SteamController005_GetGlyphForActionOrigin( struct cppISteamController_SteamController005_GetGlyphForActionOrigin_params *params )
{
struct u_ISteamController_SteamController005 *iface = (struct u_ISteamController_SteamController005 *)params->linux_side;
if (!(params->_ret = iface->GetGlyphForActionOrigin( params->eOrigin ))) return;
params->_ret = glyph_cache_lookup( controller_cache, params->_ret, params->eOrigin, 0, 0 );
}
/* ISteamController_SteamController006 */
void cppISteamController_SteamController006_GetGlyphForActionOrigin( struct cppISteamController_SteamController006_GetGlyphForActionOrigin_params *params )
{
struct u_ISteamController_SteamController006 *iface = (struct u_ISteamController_SteamController006 *)params->linux_side;
if (!(params->_ret = iface->GetGlyphForActionOrigin( params->eOrigin ))) return;
params->_ret = glyph_cache_lookup( controller_cache, params->_ret, params->eOrigin, 0, 0 );
}
/* ISteamController_SteamController007 */
void cppISteamController_SteamController007_GetGlyphForActionOrigin( struct cppISteamController_SteamController007_GetGlyphForActionOrigin_params *params )
{
struct u_ISteamController_SteamController007 *iface = (struct u_ISteamController_SteamController007 *)params->linux_side;
if (!(params->_ret = iface->GetGlyphForActionOrigin( params->eOrigin ))) return;
params->_ret = glyph_cache_lookup( controller_cache, params->_ret, params->eOrigin, 0, 0 );
}
void cppISteamController_SteamController007_GetGlyphForXboxOrigin( struct cppISteamController_SteamController007_GetGlyphForXboxOrigin_params *params )
{
struct u_ISteamController_SteamController007 *iface = (struct u_ISteamController_SteamController007 *)params->linux_side;
if (!(params->_ret = iface->GetGlyphForXboxOrigin( params->eOrigin ))) return;
params->_ret = glyph_cache_lookup( xbox_cache, params->_ret, params->eOrigin, 0, 0 );
}
/* ISteamController_SteamController008 */
void cppISteamController_SteamController008_GetGlyphForActionOrigin( struct cppISteamController_SteamController008_GetGlyphForActionOrigin_params *params )
{
struct u_ISteamController_SteamController008 *iface = (struct u_ISteamController_SteamController008 *)params->linux_side;
if (!(params->_ret = iface->GetGlyphForActionOrigin( params->eOrigin ))) return;
params->_ret = glyph_cache_lookup( controller_cache, params->_ret, params->eOrigin, 0, 0 );
}
void cppISteamController_SteamController008_GetGlyphForXboxOrigin( struct cppISteamController_SteamController008_GetGlyphForXboxOrigin_params *params )
{
struct u_ISteamController_SteamController008 *iface = (struct u_ISteamController_SteamController008 *)params->linux_side;
if (!(params->_ret = iface->GetGlyphForXboxOrigin( params->eOrigin ))) return;
params->_ret = glyph_cache_lookup( xbox_cache, params->_ret, params->eOrigin, 0, 0 );
}
/* ISteamInput_SteamInput001 */
void cppISteamInput_SteamInput001_GetGlyphForActionOrigin( struct cppISteamInput_SteamInput001_GetGlyphForActionOrigin_params *params )
{
struct u_ISteamInput_SteamInput001 *iface = (struct u_ISteamInput_SteamInput001 *)params->linux_side;
if (!(params->_ret = iface->GetGlyphForActionOrigin( params->eOrigin ))) return;
params->_ret = glyph_cache_lookup( input_cache, params->_ret, params->eOrigin, 0, 0 );
}
void cppISteamInput_SteamInput001_GetGlyphForXboxOrigin( struct cppISteamInput_SteamInput001_GetGlyphForXboxOrigin_params *params )
{
struct u_ISteamInput_SteamInput001 *iface = (struct u_ISteamInput_SteamInput001 *)params->linux_side;
if (!(params->_ret = iface->GetGlyphForXboxOrigin( params->eOrigin ))) return;
params->_ret = glyph_cache_lookup( xbox_cache, params->_ret, params->eOrigin, 0, 0 );
}
/* ISteamInput_SteamInput002 */
void cppISteamInput_SteamInput002_GetGlyphForActionOrigin( struct cppISteamInput_SteamInput002_GetGlyphForActionOrigin_params *params )
{
struct u_ISteamInput_SteamInput002 *iface = (struct u_ISteamInput_SteamInput002 *)params->linux_side;
if (!(params->_ret = iface->GetGlyphForActionOrigin( params->eOrigin ))) return;
params->_ret = glyph_cache_lookup( input_cache, params->_ret, params->eOrigin, 0, 0 );
}
void cppISteamInput_SteamInput002_GetGlyphForXboxOrigin( struct cppISteamInput_SteamInput002_GetGlyphForXboxOrigin_params *params )
{
struct u_ISteamInput_SteamInput002 *iface = (struct u_ISteamInput_SteamInput002 *)params->linux_side;
if (!(params->_ret = iface->GetGlyphForXboxOrigin( params->eOrigin ))) return;
params->_ret = glyph_cache_lookup( xbox_cache, params->_ret, params->eOrigin, 0, 0 );
}
/* ISteamInput_SteamInput005 */
static void (W_STDCALL *w_EnableActionEventCallbacks)( SteamInputActionEvent_t * );
static void u_SteamInputActionEventCallbackPointer( SteamInputActionEvent_t *dat )
{
if (w_EnableActionEventCallbacks) w_EnableActionEventCallbacks( dat );
}
void cppISteamInput_SteamInput005_EnableActionEventCallbacks( struct cppISteamInput_SteamInput005_EnableActionEventCallbacks_params *params )
{
struct u_ISteamInput_SteamInput005 *iface = (struct u_ISteamInput_SteamInput005 *)params->linux_side;
w_EnableActionEventCallbacks = params->pCallback;
iface->EnableActionEventCallbacks( params->pCallback ? &u_SteamInputActionEventCallbackPointer : NULL );
}
void cppISteamInput_SteamInput005_GetGlyphPNGForActionOrigin( struct cppISteamInput_SteamInput005_GetGlyphPNGForActionOrigin_params *params )
{
struct u_ISteamInput_SteamInput005 *iface = (struct u_ISteamInput_SteamInput005 *)params->linux_side;
if (!(params->_ret = iface->GetGlyphPNGForActionOrigin( params->eOrigin, params->eSize, params->unFlags ))) return;
params->_ret = glyph_cache_lookup( input_cache_png, params->_ret, params->eOrigin, params->unFlags, params->eSize );
}
void cppISteamInput_SteamInput005_GetGlyphSVGForActionOrigin( struct cppISteamInput_SteamInput005_GetGlyphSVGForActionOrigin_params *params )
{
struct u_ISteamInput_SteamInput005 *iface = (struct u_ISteamInput_SteamInput005 *)params->linux_side;
if (!(params->_ret = iface->GetGlyphSVGForActionOrigin( params->eOrigin, params->unFlags ))) return;
params->_ret = glyph_cache_lookup( input_cache_svg, params->_ret, params->eOrigin, params->unFlags, 0 );
}
void cppISteamInput_SteamInput005_GetGlyphForActionOrigin_Legacy( struct cppISteamInput_SteamInput005_GetGlyphForActionOrigin_Legacy_params *params )
{
struct u_ISteamInput_SteamInput005 *iface = (struct u_ISteamInput_SteamInput005 *)params->linux_side;
if (!(params->_ret = iface->GetGlyphForActionOrigin_Legacy( params->eOrigin ))) return;
params->_ret = glyph_cache_lookup( input_cache, params->_ret, params->eOrigin, 0, 0 );
}
void cppISteamInput_SteamInput005_GetGlyphForXboxOrigin( struct cppISteamInput_SteamInput005_GetGlyphForXboxOrigin_params *params )
{
struct u_ISteamInput_SteamInput005 *iface = (struct u_ISteamInput_SteamInput005 *)params->linux_side;
if (!(params->_ret = iface->GetGlyphForXboxOrigin( params->eOrigin ))) return;
params->_ret = glyph_cache_lookup( xbox_cache, params->_ret, params->eOrigin, 0, 0 );
}
/* ISteamInput_SteamInput006 */
void cppISteamInput_SteamInput006_EnableActionEventCallbacks( struct cppISteamInput_SteamInput006_EnableActionEventCallbacks_params *params )
{
struct u_ISteamInput_SteamInput006 *iface = (struct u_ISteamInput_SteamInput006 *)params->linux_side;
w_EnableActionEventCallbacks = params->pCallback;
iface->EnableActionEventCallbacks( params->pCallback ? &u_SteamInputActionEventCallbackPointer : NULL );
}
void cppISteamInput_SteamInput006_GetGlyphPNGForActionOrigin( struct cppISteamInput_SteamInput006_GetGlyphPNGForActionOrigin_params *params )
{
struct u_ISteamInput_SteamInput006 *iface = (struct u_ISteamInput_SteamInput006 *)params->linux_side;
if (!(params->_ret = iface->GetGlyphPNGForActionOrigin( params->eOrigin, params->eSize, params->unFlags ))) return;
params->_ret = glyph_cache_lookup( input_cache_png, params->_ret, params->eOrigin, params->unFlags, params->eSize );
}
void cppISteamInput_SteamInput006_GetGlyphSVGForActionOrigin( struct cppISteamInput_SteamInput006_GetGlyphSVGForActionOrigin_params *params )
{
struct u_ISteamInput_SteamInput006 *iface = (struct u_ISteamInput_SteamInput006 *)params->linux_side;
if (!(params->_ret = iface->GetGlyphSVGForActionOrigin( params->eOrigin, params->unFlags ))) return;
params->_ret = glyph_cache_lookup( input_cache_svg, params->_ret, params->eOrigin, params->unFlags, 0 );
}
void cppISteamInput_SteamInput006_GetGlyphForActionOrigin_Legacy( struct cppISteamInput_SteamInput006_GetGlyphForActionOrigin_Legacy_params *params )
{
struct u_ISteamInput_SteamInput006 *iface = (struct u_ISteamInput_SteamInput006 *)params->linux_side;
if (!(params->_ret = iface->GetGlyphForActionOrigin_Legacy( params->eOrigin ))) return;
params->_ret = glyph_cache_lookup( input_cache, params->_ret, params->eOrigin, 0, 0 );
}
void cppISteamInput_SteamInput006_GetGlyphForXboxOrigin( struct cppISteamInput_SteamInput006_GetGlyphForXboxOrigin_params *params )
{
struct u_ISteamInput_SteamInput006 *iface = (struct u_ISteamInput_SteamInput006 *)params->linux_side;
if (!(params->_ret = iface->GetGlyphForXboxOrigin( params->eOrigin ))) return;
params->_ret = glyph_cache_lookup( xbox_cache, params->_ret, params->eOrigin, 0, 0 );
}