lsteamclient: Wrap EnableActionEventCallbacks's callback also for SteamInput006.

This commit is contained in:
Arkadiusz Hiler 2022-06-10 12:26:24 +03:00
parent 6ded785ccd
commit db61ec1f1e
3 changed files with 11 additions and 5 deletions

View File

@ -51,11 +51,6 @@ void cppISteamInput_SteamInput006_EnableDeviceCallbacks(void *linux_side)
((ISteamInput*)linux_side)->EnableDeviceCallbacks();
}
void cppISteamInput_SteamInput006_EnableActionEventCallbacks(void *linux_side, SteamInputActionEventCallbackPointer pCallback)
{
((ISteamInput*)linux_side)->EnableActionEventCallbacks((SteamInputActionEventCallbackPointer)pCallback);
}
InputActionSetHandle_t cppISteamInput_SteamInput006_GetActionSetHandle(void *linux_side, const char * pszActionSetName)
{
return ((ISteamInput*)linux_side)->GetActionSetHandle((const char *)pszActionSetName);

View File

@ -249,6 +249,7 @@ manually_handled_methods = {
"GetGlyphForXboxOrigin"
],
"cppISteamInput_SteamInput006": [
"EnableActionEventCallbacks",
"GetGlyphPNGForActionOrigin",
"GetGlyphSVGForActionOrigin",
"GetGlyphForActionOrigin_Legacy",

View File

@ -27,6 +27,16 @@ extern "C" {
#include "queue.h"
/***** manual fn wrapper for ISteamInput::EnableActionEventCallbacks *****/
extern win_SteamInputActionEventCallbackPointer win_EnableActionEventCallbacks;
void cppISteamInput_SteamInput006_EnableActionEventCallbacks(void *linux_side, win_SteamInputActionEventCallbackPointer pCallback)
{
win_EnableActionEventCallbacks = pCallback;
((ISteamInput*)linux_side)->EnableActionEventCallbacks(pCallback ? &lin_SteamInputActionEventCallbackPointer : NULL);
}
/***** manual struct converter for SteamNetworkingMessage_t *****/
struct msg_wrapper {