mirror of
https://git.suyu.dev/suyu/Yucom.git
synced 2025-12-24 08:14:34 +01:00
lsteamclient: generate 1.52 support
This commit is contained in:
parent
a1244bdf38
commit
da911c3bf9
73 changed files with 4121 additions and 1532 deletions
41
lsteamclient/steamclient_manual_152.cpp
Normal file
41
lsteamclient/steamclient_manual_152.cpp
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
extern "C" {
|
||||
#include <stdarg.h>
|
||||
|
||||
#include "windef.h"
|
||||
#include "winbase.h"
|
||||
#include "wine/debug.h"
|
||||
|
||||
WINE_DEFAULT_DEBUG_CHANNEL(steamclient);
|
||||
}
|
||||
|
||||
#include "steam_defs.h"
|
||||
#pragma push_macro("__cdecl")
|
||||
#undef __cdecl
|
||||
#include "steamworks_sdk_152/steam_api.h"
|
||||
#include "steamworks_sdk_152/isteaminput.h"
|
||||
#pragma pop_macro("__cdecl")
|
||||
#include "steamclient_private.h"
|
||||
|
||||
extern "C" {
|
||||
#define SDKVER_152
|
||||
#include "struct_converters.h"
|
||||
#include "cb_converters.h"
|
||||
|
||||
/***** manual fn wrapper for ISteamInput::EnableActionEventCallbacks *****/
|
||||
typedef void (*CDECL win_SteamInputActionEventCallbackPointer)(SteamInputActionEvent_t *);
|
||||
win_SteamInputActionEventCallbackPointer win_EnableActionEventCallbacks;
|
||||
|
||||
void lin_SteamInputActionEventCallbackPointer(SteamInputActionEvent_t *dat)
|
||||
{
|
||||
win_SteamInputActionEventCallbackPointer fn = win_EnableActionEventCallbacks;
|
||||
if(fn)
|
||||
fn(dat);
|
||||
}
|
||||
|
||||
void cppISteamInput_SteamInput005_EnableActionEventCallbacks(void *linux_side, win_SteamInputActionEventCallbackPointer pCallback)
|
||||
{
|
||||
win_EnableActionEventCallbacks = pCallback;
|
||||
((ISteamInput*)linux_side)->EnableActionEventCallbacks(pCallback ? &lin_SteamInputActionEventCallbackPointer : NULL);
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue