samplerCube
[vg.git] / vg_steam_utils.h
1 #ifndef VG_STEAM_UTILS_H
2 #define VG_STEAM_UTILS_H
3
4 #include "vg_steam.h"
5
6 #if defined( VALVE_CALLBACK_PACK_SMALL )
7 #pragma pack( push, 4 )
8 #elif defined( VALVE_CALLBACK_PACK_LARGE )
9 #pragma pack( push, 8 )
10 #endif
11
12 /* ... */
13
14 #pragma pack(pop)
15
16 typedef void ISteamUtils;
17 typedef void ISteamInput;
18
19 ISteamUtils *SteamAPI_SteamUtils_v010(void);
20 ISteamUtils *SteamAPI_SteamUtils(void)
21 {
22 return SteamAPI_SteamUtils_v010();
23 }
24
25 steamapi_bool SteamAPI_ISteamUtils_SetWarningMessageHook(
26 ISteamUtils *self, void( *fn_print )(int, const char *) );
27
28
29 ISteamInput *SteamAPI_SteamInput_v006(void);
30 ISteamInput *SteamAPI_SteamInput(void)
31 {
32 return SteamAPI_SteamInput_v006();
33 }
34
35 typedef u64 InputHandle_t;
36
37 typedef enum ESteamInputType ESteamInputType;
38 enum ESteamInputType
39 {
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,
57 };
58
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 );
68
69
70 #endif /* VG_STEAM_UTILS_H */