mirror of
https://github.com/ValveSoftware/Proton.git
synced 2024-12-26 06:35:46 +03:00
lsteamclient: Wrap EnableActionEventCallbacks's callback also for SteamInput006.
This commit is contained in:
parent
6ded785ccd
commit
db61ec1f1e
@ -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);
|
||||
|
@ -249,6 +249,7 @@ manually_handled_methods = {
|
||||
"GetGlyphForXboxOrigin"
|
||||
],
|
||||
"cppISteamInput_SteamInput006": [
|
||||
"EnableActionEventCallbacks",
|
||||
"GetGlyphPNGForActionOrigin",
|
||||
"GetGlyphSVGForActionOrigin",
|
||||
"GetGlyphForActionOrigin_Legacy",
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user