hpg_projects Wiki
collectiom of tutorials and projects created in LateralGM
Brought to you by:
hpg50
Sets the color of the LED indicator for the given gamepad device.
Acceptable values include Color constants or HEX
color values. This function only applies to certain gamepad devices such
as the PlayStation controller because Xbox controllers do not have this
functionality. For this reason, the XInput extension does nothing when
this function is
called.
| Parameter | Data Type | Description |
|---|---|---|
| device | integer | The gamepad index, must be 0 through 3, 0 being player 1. |
| color | integer | Color constants or HEX color value. |
void: This function does not return
anything.
// demonstrates setting the LED indicator on player 1's controller to red
gamepad_set_color(0, c_red);
NOTOC