Documentation
¶
Index ¶
- func Init() error
- func RestartAppIfNecessary(appID uint32) bool
- func RunCallbacks()
- type AppId_t
- type CSteamID
- type EFloatingGamepadTextInputMode
- type ESteamAPIInitResult
- type ESteamInputType
- type ISteamApps
- type ISteamFriends
- type ISteamInput
- type ISteamRemoteStorage
- type ISteamUser
- type ISteamUserStats
- type ISteamUtils
- type InputHandle_t
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RestartAppIfNecessary ¶
func RunCallbacks ¶
func RunCallbacks()
Types ¶
type EFloatingGamepadTextInputMode ¶
type EFloatingGamepadTextInputMode int32
const ( EFloatingGamepadTextInputMode_ModeSingleLine EFloatingGamepadTextInputMode = 0 EFloatingGamepadTextInputMode_ModeMultipleLines EFloatingGamepadTextInputMode = 1 EFloatingGamepadTextInputMode_ModeEmail EFloatingGamepadTextInputMode = 2 EFloatingGamepadTextInputMode_ModeNumeric EFloatingGamepadTextInputMode = 3 )
type ESteamAPIInitResult ¶
type ESteamAPIInitResult int32
const ( ESteamAPIInitResult_OK ESteamAPIInitResult = 0 ESteamAPIInitResult_FailedGeneric ESteamAPIInitResult = 1 ESteamAPIInitResult_NoSteamClient ESteamAPIInitResult = 2 ESteamAPIInitResult_VersionMismatch ESteamAPIInitResult = 3 )
type ESteamInputType ¶
type ESteamInputType int32
const ( ESteamInputType_Unknown ESteamInputType = 0 ESteamInputType_SteamController ESteamInputType = 1 ESteamInputType_XBox360Controller ESteamInputType = 2 ESteamInputType_XBoxOneController ESteamInputType = 3 ESteamInputType_GenericXInput ESteamInputType = 4 ESteamInputType_PS4Controller ESteamInputType = 5 ESteamInputType_AppleMFiController ESteamInputType = 6 // Unused ESteamInputType_AndroidController ESteamInputType = 7 // Unused ESteamInputType_SwitchJoyConPair ESteamInputType = 8 // Unused ESteamInputType_SwitchJoyConSingle ESteamInputType = 9 // Unused ESteamInputType_SwitchProController ESteamInputType = 10 ESteamInputType_MobileTouch ESteamInputType = 11 ESteamInputType_PS3Controller ESteamInputType = 12 ESteamInputType_PS5Controller ESteamInputType = 13 ESteamInputType_SteamDeckController ESteamInputType = 14 ESteamInputType_Count ESteamInputType = 15 ESteamInputType_MaximumPossibleValue ESteamInputType = 255 )
type ISteamApps ¶
type ISteamApps interface {
BGetDLCDataByIndex(iDLC int) (appID AppId_t, available bool, pchName string, success bool)
BIsDlcInstalled(appID AppId_t) bool
GetAppInstallDir(appID AppId_t) string
GetCurrentGameLanguage() string
GetDLCCount() int32
}
func SteamApps ¶
func SteamApps() ISteamApps
type ISteamFriends ¶
func SteamFriends ¶
func SteamFriends() ISteamFriends
type ISteamInput ¶
type ISteamInput interface {
GetConnectedControllers() []InputHandle_t
GetInputTypeForHandle(inputHandle InputHandle_t) ESteamInputType
Init(bExplicitlyCallRunFrame bool) bool
RunFrame()
}
func SteamInput ¶
func SteamInput() ISteamInput
type ISteamRemoteStorage ¶
type ISteamRemoteStorage interface {
FileWrite(file string, data []byte) bool
FileRead(file string, data []byte) int32
FileDelete(file string) bool
GetFileSize(file string) int32
}
func SteamRemoteStorage ¶
func SteamRemoteStorage() ISteamRemoteStorage
type ISteamUser ¶
type ISteamUser interface {
GetSteamID() CSteamID
}
func SteamUser ¶
func SteamUser() ISteamUser
type ISteamUserStats ¶
type ISteamUserStats interface {
GetAchievement(name string) (achieved, success bool)
SetAchievement(name string) bool
ClearAchievement(name string) bool
StoreStats() bool
}
func SteamUserStats ¶
func SteamUserStats() ISteamUserStats
type ISteamUtils ¶
type ISteamUtils interface {
IsOverlayEnabled() bool
IsSteamRunningOnSteamDeck() bool
ShowFloatingGamepadTextInput(keyboardMode EFloatingGamepadTextInputMode, textFieldXPosition, textFieldYPosition, textFieldWidth, textFieldHeight int32) bool
}
func SteamUtils ¶
func SteamUtils() ISteamUtils
type InputHandle_t ¶
type InputHandle_t uint64
Click to show internal directories.
Click to hide internal directories.