Skip to main content
Gets the lighting groups in which the input device has controllable lamps.

Syntax

Parameters

This method has no parameters.

Return value

Type: GameInputLightingGroups A combination of GameInputLightingGroups 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 as GameInputLightingGroupFaceButtons 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.
The set of supported lighting groups doesn’t change for the lifetime of the device object.
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 consoles

See also

Overview of GameInput
IGameInputDevice
GameInputLightingGroups
IGameInputDevice::GetSupportedLightingGroupSize
IGameInputDevice::SetLightingColor
IGameInputDevice::ApplyLightingColors
IGameInputDevice::ApplyLightingSystemDefault

Version History

Last modified on November 5, 2026