assorted
[vg.git] / src / vg / vg_steam_utils.h
index 282fe74815fbe6cdadd3eea0de89d935e870c4d4..e20c340cc9f89983a6da3e6e5277a547958fe595 100644 (file)
@@ -14,6 +14,8 @@
 #pragma pack(pop)
 
 typedef void ISteamUtils;
+typedef void ISteamInput;
+
 ISteamUtils *SteamAPI_SteamUtils_v010(void);
 ISteamUtils *SteamAPI_SteamUtils(void)
 {
@@ -24,4 +26,43 @@ int SteamAPI_ISteamUtils_SetWarningMessageHook(
       ISteamUtils *self, void( *fn_print )(int, const char *) );
 
 
+ISteamInput *SteamAPI_SteamInput_v006(void);
+ISteamInput *SteamAPI_SteamInput(void)
+{
+   return SteamAPI_SteamInput_v006();
+}
+
+typedef u64 InputHandle_t;
+
+typedef enum ESteamInputType ESteamInputType;
+enum ESteamInputType
+{
+   k_ESteamInputType_Unknown,
+   k_ESteamInputType_SteamController,
+   k_ESteamInputType_XBox360Controller,
+   k_ESteamInputType_XBoxOneController,
+   k_ESteamInputType_GenericGamepad,
+   k_ESteamInputType_PS4Controller,
+   k_ESteamInputType_AppleMFiController,
+   k_ESteamInputType_AndroidController,
+   k_ESteamInputType_SwitchJoyConPair,
+   k_ESteamInputType_SwitchJoyConSingle,
+   k_ESteamInputType_SwitchProController,
+   k_ESteamInputType_MobileTouch,
+   k_ESteamInputType_PS3Controller,
+   k_ESteamInputType_PS5Controller,
+   k_ESteamInputType_SteamDeckController,      // Added in SDK 153
+   k_ESteamInputType_Count,
+   k_ESteamInputType_MaximumPossibleValue = 255,
+};
+
+int SteamAPI_ISteamInput_Init( ISteamInput* self, int bExplicitlyCallRunFrame );
+int SteamAPI_ISteamInput_Shutdown( ISteamInput* self );
+InputHandle_t SteamAPI_ISteamInput_GetControllerForGamepadIndex( 
+                  ISteamInput* self, int nIndex );
+ESteamInputType SteamAPI_ISteamInput_GetInputTypeForHandle( 
+                  ISteamInput* self, InputHandle_t inputHandle );
+void SteamAPI_ISteamInput_RunFrame( ISteamInput* self, int bReservedValue );
+
+
 #endif /* VG_STEAM_UTILS_H */