X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=src%2Fvg%2Fvg_steam_utils.h;h=e20c340cc9f89983a6da3e6e5277a547958fe595;hb=3dd767bb10e6fee9cbffeb185d1a9685810c17b5;hp=282fe74815fbe6cdadd3eea0de89d935e870c4d4;hpb=6aeba08ad9ad8bdecafcfd9f946173e99a84fc59;p=vg.git diff --git a/src/vg/vg_steam_utils.h b/src/vg/vg_steam_utils.h index 282fe74..e20c340 100644 --- a/src/vg/vg_steam_utils.h +++ b/src/vg/vg_steam_utils.h @@ -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 */