<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to Gamepad_set_color</title><link>https://sourceforge.net/p/hpg-projects2/wiki/Gamepad_set_color/</link><description>Recent changes to Gamepad_set_color</description><atom:link href="https://sourceforge.net/p/hpg-projects2/wiki/Gamepad_set_color/feed" rel="self"/><language>en</language><lastBuildDate>Sun, 07 Apr 2024 02:42:39 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/hpg-projects2/wiki/Gamepad_set_color/feed" rel="self" type="application/rss+xml"/><item><title>Gamepad_set_color modified by Hugh Greene</title><link>https://sourceforge.net/p/hpg-projects2/wiki/Gamepad_set_color/</link><description>&lt;div class="markdown_content"&gt;&lt;h2 id="description"&gt;Description&lt;/h2&gt;
&lt;p&gt;Sets the color of the LED indicator for the given gamepad device.&lt;br/&gt;
Acceptable values include &lt;a class="" href="/p/hpg-projects2/wiki/Color/" title="wikilink"&gt;Color&lt;/a&gt; constants or HEX&lt;br/&gt;
color values. This function only applies to certain gamepad devices such&lt;br/&gt;
as the PlayStation controller because Xbox controllers do not have this&lt;br/&gt;
functionality. For this reason, the XInput extension does nothing when&lt;br/&gt;
this function is&lt;br/&gt;
called.&lt;/p&gt;
&lt;h2 id="parameters"&gt;Parameters&lt;/h2&gt;
&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Parameter&lt;/th&gt;
&lt;th&gt;Data Type&lt;/th&gt;
&lt;th&gt;Description&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;device&lt;/td&gt;
&lt;td&gt;integer&lt;/td&gt;
&lt;td&gt;The gamepad index, must be 0 through 3, 0 being player 1.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;color&lt;/td&gt;
&lt;td&gt;integer&lt;/td&gt;
&lt;td&gt;&lt;a class="" href="/p/hpg-projects2/wiki/Color/" title="wikilink"&gt;Color&lt;/a&gt; constants or HEX color value.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;h2 id="return-values"&gt;Return Values&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;void&lt;/strong&gt;: This function does not return&lt;br/&gt;
anything.&lt;/p&gt;
&lt;h2 id="example-call"&gt;Example Call&lt;/h2&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;&lt;span class="c1"&gt;// demonstrates setting the LED indicator on player 1's controller to red&lt;/span&gt;
&lt;span class="n"&gt;gamepad_set_color&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;c_red&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;NOTOC&lt;/strong&gt;&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Hugh Greene</dc:creator><pubDate>Sun, 07 Apr 2024 02:42:39 -0000</pubDate><guid>https://sourceforge.neta017d0da18109e6045e5a9fda6cebdd682be5fa9</guid></item></channel></rss>