diff options
author | Arkadiusz Hiler <ahiler@codeweavers.com> | 2022-06-10 12:26:24 +0300 |
---|---|---|
committer | Arkadiusz Hiler <ahiler@codeweavers.com> | 2022-06-10 16:28:14 +0300 |
commit | f14119377165702a08a4ef5612dac50759b1e67f (patch) | |
tree | 058fc506a5f8d977bcd122257a0a69d089740c8b | |
parent | 64bb6703275024da4b77daa0ac1f2a9e39b29b3e (diff) |
lsteamclient: Wrap EnableActionEventCallbacks's callback also for SteamInput006.experimental-7.0-20220610
-rw-r--r-- | lsteamclient/cppISteamInput_SteamInput006.cpp | 5 | ||||
-rwxr-xr-x | lsteamclient/gen_wrapper.py | 1 | ||||
-rw-r--r-- | lsteamclient/steamclient_manual_153a.cpp | 10 |
3 files changed, 11 insertions, 5 deletions
diff --git a/lsteamclient/cppISteamInput_SteamInput006.cpp b/lsteamclient/cppISteamInput_SteamInput006.cpp index e07c1735..8ddc4fd8 100644 --- a/lsteamclient/cppISteamInput_SteamInput006.cpp +++ b/lsteamclient/cppISteamInput_SteamInput006.cpp @@ -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); diff --git a/lsteamclient/gen_wrapper.py b/lsteamclient/gen_wrapper.py index 6671135d..f0520844 100755 --- a/lsteamclient/gen_wrapper.py +++ b/lsteamclient/gen_wrapper.py @@ -249,6 +249,7 @@ manually_handled_methods = { "GetGlyphForXboxOrigin" ], "cppISteamInput_SteamInput006": [ + "EnableActionEventCallbacks", "GetGlyphPNGForActionOrigin", "GetGlyphSVGForActionOrigin", "GetGlyphForActionOrigin_Legacy", diff --git a/lsteamclient/steamclient_manual_153a.cpp b/lsteamclient/steamclient_manual_153a.cpp index 79d0b775..4270a69f 100644 --- a/lsteamclient/steamclient_manual_153a.cpp +++ b/lsteamclient/steamclient_manual_153a.cpp @@ -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 { |