Syntax
Parameters
This method has no parameters.Return value
Type: GameInputLightingGroups A combination ofGameInputLightingGroups flags for every named lighting group that contains at least one lamp on the device. Returns GameInputLightingGroupUnknown (0) if the device has no lamps in any named group.
Remarks
Each flag in the returned value identifies a named group of lamps, such asGameInputLightingGroupFaceButtons or GameInputLightingGroupCenterLight, that you can address with IGameInputDevice::SetLightingColor. The method never reports GameInputLightingGroupUnknown as a group, because its value is 0.
A device can have lamps that don’t belong to any named group. A return value of 0 therefore doesn’t always mean that the device has no lamps. To determine whether a device supports lighting at all, check whether IGameInputDevice::GetSupportedInput includes GameInputKindLighting, or call IGameInputDevice::GetSupportedLightingGroupSize with GameInputLightingGroupAll. To count lamps that aren’t in a named group, call GetSupportedLightingGroupSize with GameInputLightingGroupUnknown.
The following example sets the face buttons to red and the center light to blue on devices that have those groups, and then applies the colors in a single update.
Lighting support depends on the device and the platform. Currently, GameInput supports lighting on Windows Dynamic Lighting (LampArray) devices and on the lightbar of DualSense controllers.
Requirements
Header: GameInput.h Library: gameinput.lib Supported platforms: Windows, XBOX One family consoles and XBOX Series consolesSee also
Overview of GameInputIGameInputDevice
GameInputLightingGroups
IGameInputDevice::GetSupportedLightingGroupSize
IGameInputDevice::SetLightingColor
IGameInputDevice::ApplyLightingColors
IGameInputDevice::ApplyLightingSystemDefault
