Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ValveSoftware/Proton.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArkadiusz Hiler <ahiler@codeweavers.com>2022-06-10 12:24:47 +0300
committerArkadiusz Hiler <ahiler@codeweavers.com>2022-06-10 16:31:18 +0300
commit6ded785ccd9371846a5d610a93c52dc446978ed8 (patch)
tree9dbf2d657d603d1e0e86037ff485fc9f8a5ce285
parent05efcef3fa199bec4a1e5f63e5c5dcc23200faf3 (diff)
lsteamclient: Make helpers for EnableActionEventCallbacks reusable.
-rw-r--r--lsteamclient/steamclient_manual_152.cpp1
-rw-r--r--lsteamclient/steamclient_private.h6
2 files changed, 6 insertions, 1 deletions
diff --git a/lsteamclient/steamclient_manual_152.cpp b/lsteamclient/steamclient_manual_152.cpp
index 70912255..5dbd9863 100644
--- a/lsteamclient/steamclient_manual_152.cpp
+++ b/lsteamclient/steamclient_manual_152.cpp
@@ -24,7 +24,6 @@ extern "C" {
#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)
diff --git a/lsteamclient/steamclient_private.h b/lsteamclient/steamclient_private.h
index 2f9a0edb..ece5f456 100644
--- a/lsteamclient/steamclient_private.h
+++ b/lsteamclient/steamclient_private.h
@@ -4,6 +4,8 @@
extern "C" {
#endif
+#include "windef.h"
+
typedef struct __winISteamClient winISteamClient;
typedef struct __winISteamUser winISteamUser;
typedef struct __winISteamGameServer winISteamGameServer;
@@ -38,6 +40,10 @@ typedef struct __winISteamRemotePlay winISteamRemotePlay;
typedef struct __winISteamNetworkingFakeUDPPort winISteamNetworkingFakeUDPPort;
typedef struct __winX winX;
+struct SteamInputActionEvent_t;
+typedef void (*CDECL win_SteamInputActionEventCallbackPointer)(SteamInputActionEvent_t *);
+void lin_SteamInputActionEventCallbackPointer(SteamInputActionEvent_t *dat);
+
void *create_win_interface(const char *name, void *linux_side);
unsigned int steamclient_unix_path_to_dos_path(bool api_result, const char *src, char *dst, uint32 dst_bytes, int is_url);
bool steamclient_dos_path_to_unix_path(const char *src, char *dst, int is_url);