1 #ifndef VG_STEAM_UTILS_H
2 #define VG_STEAM_UTILS_H
6 #if defined( VALVE_CALLBACK_PACK_SMALL )
7 #pragma pack( push, 4 )
8 #elif defined( VALVE_CALLBACK_PACK_LARGE )
9 #pragma pack( push, 8 )
16 typedef void ISteamUtils
;
17 typedef void ISteamInput
;
19 ISteamUtils
*SteamAPI_SteamUtils_v010(void);
20 ISteamUtils
*SteamAPI_SteamUtils(void)
22 return SteamAPI_SteamUtils_v010();
25 steamapi_bool
SteamAPI_ISteamUtils_SetWarningMessageHook(
26 ISteamUtils
*self
, void( *fn_print
)(int, const char *) );
29 ISteamInput
*SteamAPI_SteamInput_v006(void);
30 ISteamInput
*SteamAPI_SteamInput(void)
32 return SteamAPI_SteamInput_v006();
35 typedef u64 InputHandle_t
;
37 typedef enum ESteamInputType ESteamInputType
;
40 k_ESteamInputType_Unknown
,
41 k_ESteamInputType_SteamController
,
42 k_ESteamInputType_XBox360Controller
,
43 k_ESteamInputType_XBoxOneController
,
44 k_ESteamInputType_GenericGamepad
,
45 k_ESteamInputType_PS4Controller
,
46 k_ESteamInputType_AppleMFiController
,
47 k_ESteamInputType_AndroidController
,
48 k_ESteamInputType_SwitchJoyConPair
,
49 k_ESteamInputType_SwitchJoyConSingle
,
50 k_ESteamInputType_SwitchProController
,
51 k_ESteamInputType_MobileTouch
,
52 k_ESteamInputType_PS3Controller
,
53 k_ESteamInputType_PS5Controller
,
54 k_ESteamInputType_SteamDeckController
, // Added in SDK 153
55 k_ESteamInputType_Count
,
56 k_ESteamInputType_MaximumPossibleValue
= 255,
59 steamapi_bool
SteamAPI_ISteamInput_Init( ISteamInput
*self
,
60 steamapi_bool bExplicitlyCallRunFrame
);
61 steamapi_bool
SteamAPI_ISteamInput_Shutdown( ISteamInput
* self
);
62 InputHandle_t
SteamAPI_ISteamInput_GetControllerForGamepadIndex(
63 ISteamInput
* self
, int nIndex
);
64 ESteamInputType
SteamAPI_ISteamInput_GetInputTypeForHandle(
65 ISteamInput
* self
, InputHandle_t inputHandle
);
66 void SteamAPI_ISteamInput_RunFrame( ISteamInput
* self
,
67 steamapi_bool bReservedValue
);
70 #endif /* VG_STEAM_UTILS_H */