XSystemGetDeviceType
Returns an XSystemDeviceType value corresponding to the device currently being used.Syntax
Parameters
None.Return value
Type: XSystemDeviceType XSystemDeviceType enumeration value corresponding to the device currently being used.This function has no explicit error state, but will return a value of XSystemDeviceType::Unknown if it is not possible to determine the device type in use.
Remarks
This query will return the console mode, as opposed to the actual hardware type, meaning that it is possible for a developer console to masquerade as a different device type when polled by a title.A Microsoft Game Development Kit (GDK) title built for the XBOX One family will not return a
device code within the XBOX Series consoles unless the XboxCompatibility setting in the MicrosoftGame.config file is set to Scarlett. Instead, it will return a code from the XBOX One family
based on the current device.
For more information on the target device family usage, see
MicrosoftGame.config overview.
Requirements
Header: XSystem.h Library: xgameruntime.lib Supported platforms: Windows, XBOX One family consoles and XBOX Series consolesSee also
XSystemDeviceTypeXSystem
