Difference between revisions of "X360CoreClass"

From Alpha Archive Wiki
Jump to navigation Jump to search
Line 25: Line 25:
 
| DebugEnableD3DBlockCallback || X360Core.DebugEnableD3DBlockCallback || public static void DebugEnableD3DBlockCallback(bool enabled); || DEBUG: Enable D3D block callback.
 
| DebugEnableD3DBlockCallback || X360Core.DebugEnableD3DBlockCallback || public static void DebugEnableD3DBlockCallback(bool enabled); || DEBUG: Enable D3D block callback.
 
|-
 
|-
| DebugGetGCMemorySize || Example || Example || DEBUG: Get garbage collected memory size.
+
| DebugGetGCMemorySize || X360Core.DebugGetGCMemorySize || public static int DebugGetGCMemorySize(); || DEBUG: Get garbage collected memory size.
 
|-
 
|-
| DebugGetGCMemoryUsed || Example || Example || DEBUG: Get garbage collected memory used.
+
| DebugGetGCMemoryUsed || X360Core.DebugGetGCMemoryUsed || public static int DebugGetGCMemoryUsed(); || DEBUG: Get garbage collected memory used.
 
|-
 
|-
| EnableNuiSystemDialogMode || Example || Example || Enables Natural User Interface mode for system dialogs. No effect if Kinect is disabled.
+
| EnableNuiSystemDialogMode || X360Core.EnableNuiSystemDialogMode || public static void EnableNuiSystemDialogMode(bool enabled); || Enables Natural User Interface mode for system dialogs. No effect if Kinect is disabled. || Calling this function will reset the skeleton tracking id. Call '''SetNuiSystemDialogTrackingId''' to select an active skeleton.
 
|-
 
|-
| EnablePersistDisplayOnQuit || Example || Example || Persist last rendered frame on quit.
+
| EnablePersistDisplayOnQuit || X360Core.EnablePersistDisplayOnQuit || public static void EnablePersistDisplayOnQuit(bool enabled); || Persist last rendered frame on quit. || See '''IDirect3DDevice9::PersistDisplay'''.
 
|-
 
|-
| GetPlayerGamerPicture || Example || Example || Gets the gamer picture of any player.
+
| GetPlayerGamerPicture || X360Core.GetPlayerGamerPicture || public static Texture2D GetPlayerGamerPicture(uint userIndex, X360PlayerId playerId, bool small); || Gets the gamer picture of any player. || '''userIndex''' Is the index of the signed-in gamer associated with a local controller port. Range[0, 3]. '''userIndex''' must have read permissions for the profile of playerId. Note: a new texture is created each time this function is called.
 
|-
 
|-
 
| GetRawTexture || Example || Example || Gets a pointer to IDirect3DBaseTexture9 for a given texture.
 
| GetRawTexture || Example || Example || Gets a pointer to IDirect3DBaseTexture9 for a given texture.

Revision as of 06:31, 8 June 2020

Description

Core Xbox 360 services.

Static Variables

Variable String Type Description
OnControllerStateChange X360Core.OnControllerStateChange public static X360Core.BasicDelegateController OnControllerStateChange; Callback activated if a controller is connected or disconnected.
OnQuit X360Core.OnQuit public static X360Core.BasicDelegateQuit OnQuit; Callback activated right before the application terminates.
OnSystemUIVisibilityChange X360Core.OnSystemUIVisibilityChange public static X360Core.BasicDelegate OnSystemUIVisibilityChange; Callback activated when system UI is shown or hidden.
OnUserStateChange X360Core.OnUserStateChange public static X360Core.BasicDelegate OnUserStateChange; Callback activated if a user signs in or signs out.

Static Functions

Variable String Type Description
DebugConfigureForcedSwap X360Core.DebugConfigureForcedSwap public static void DebugConfigureForcedSwap(bool enableSwap, bool enableFullscreenVideoUpdate); DEBUG: Configure forced swap (TCR 022).
DebugEnableD3DBlockCallback X360Core.DebugEnableD3DBlockCallback public static void DebugEnableD3DBlockCallback(bool enabled); DEBUG: Enable D3D block callback.
DebugGetGCMemorySize X360Core.DebugGetGCMemorySize public static int DebugGetGCMemorySize(); DEBUG: Get garbage collected memory size.
DebugGetGCMemoryUsed X360Core.DebugGetGCMemoryUsed public static int DebugGetGCMemoryUsed(); DEBUG: Get garbage collected memory used.
EnableNuiSystemDialogMode X360Core.EnableNuiSystemDialogMode public static void EnableNuiSystemDialogMode(bool enabled); Enables Natural User Interface mode for system dialogs. No effect if Kinect is disabled. Calling this function will reset the skeleton tracking id. Call SetNuiSystemDialogTrackingId to select an active skeleton.
EnablePersistDisplayOnQuit X360Core.EnablePersistDisplayOnQuit public static void EnablePersistDisplayOnQuit(bool enabled); Persist last rendered frame on quit. See IDirect3DDevice9::PersistDisplay.
GetPlayerGamerPicture X360Core.GetPlayerGamerPicture public static Texture2D GetPlayerGamerPicture(uint userIndex, X360PlayerId playerId, bool small); Gets the gamer picture of any player. userIndex Is the index of the signed-in gamer associated with a local controller port. Range[0, 3]. userIndex must have read permissions for the profile of playerId. Note: a new texture is created each time this function is called.
GetRawTexture Example Example Gets a pointer to IDirect3DBaseTexture9 for a given texture.
GetTotalOnlineUsers Example Example Gets the total number of users currently signed in with Live! connectivity.
GetTotalSignedInUsers Example Example Gets the total number of users currently signed in.
GetUserGamerPicture Example Example Gets the gamer picture of a local user.
GetUserLocalPlayerId Example Example Gets the local player id of a signed in user.
GetUserName Example Example Gets the local user name.
GetUserOnlinePlayerId Example Example Gets the online player id of a signed in user.
GetUserPrivilegeLevel Example Example Gets the privilege level of a local user.
IsSystemUIVisible Example Example Checks if system UI is visible.
IsUserSignedIn X360Core.IsUserSignedIn public static bool IsUserSignedIn(uint userIndex, bool onlineOnly); Checks if user is signed in. userIndex Is the index of the signed-in gamer associated with a local controller port. Range[0, 3]. onlineOnly Set to true to require Live! connectivity. bool Signed in state of the specified user.
RequestSignIn Example Example Shows the sign-in dialog if the number of currently signed-in players is not within the specified range.
SetControllerVibration Example Example Enable controller vibration.
SetNuiSystemDialogTrackingId Example Example Sets the skeleton tracking id of the locally signed-in player who will be in control of the dialogs.
SetProcessorAffinity Example Example Sets the cpu processor affinity for the current thread.
ShowGamerCard Example Example Displays a gamer card.
UserAwardGamerPicture Example Example Awards the user with a gamer picture.

Delegates

Delegates String Type Description
BasicDelegate Example Example X360Core delegate type.
BasicDelegateController Example Example X360Core delegate type.