<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Quick, easy controller question</title>
<description> Hello, I&amp;#039;m just starting out messing around with coding for the Wii. I&amp;#039;ve been looking at teknecal&amp;#039;s great tutorials, and understand how to get input from one controller using 
u16 var1 = PAD_ButtonsDown(0), etc. 
I want to define a variable that checks if controller 2 is being pressed, so I tried,
u16 var2 = PAD_ButtonsDown(1),
but it seems the compiler doesn&amp;#039;t like that. 

So how would I define a variable similar to var1 but for the second controller? 
Thanks for any help</description><link>http://forum.wiibrew.org/read.php?11,49647,49647#msg-49647</link><lastBuildDate>Sat, 17 Oct 2026 14:17:13 +0200</lastBuildDate>
<generator>Phorum 5.2.23</generator>
<item>
<guid>http://forum.wiibrew.org/read.php?11,49647,49656#msg-49656</guid>
<title>Re: Quick, easy controller question</title><link>http://forum.wiibrew.org/read.php?11,49647,49656#msg-49656</link><description><![CDATA[ Wow, just...wow... I misspelled a variable. That&#039;s why it&#039;s undeclared later on. Please ignore<br /><br />Thank you for your help though :)]]></description>
<dc:creator>seek</dc:creator>
<category>Coding</category><pubDate>Sat, 20 Feb 2010 06:07:50 +0100</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,49647,49655#msg-49655</guid>
<title>Re: Quick, easy controller question</title><link>http://forum.wiibrew.org/read.php?11,49647,49655#msg-49655</link><description><![CDATA[ Well, it&#039;s saying that my var2 is undeclared (first use in this function)<br />...do I need to define it at an earlier point? I tried and that didn&#039;t do anything]]></description>
<dc:creator>seek</dc:creator>
<category>Coding</category><pubDate>Sat, 20 Feb 2010 06:05:47 +0100</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,49647,49651#msg-49651</guid>
<title>Re: Quick, easy controller question</title><link>http://forum.wiibrew.org/read.php?11,49647,49651#msg-49651</link><description><![CDATA[ It&#039;s suppose to work, here are the names you should use for parameters in PAD_ButtonsDown:<br /><pre class="bbcode">
#define PAD_CHAN0					0
#define PAD_CHAN1					1
#define PAD_CHAN2					2
#define PAD_CHAN3					3</pre>
What is the error message that the compiler is giving?]]></description>
<dc:creator>Crayon</dc:creator>
<category>Coding</category><pubDate>Sat, 20 Feb 2010 04:25:05 +0100</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,49647,49647#msg-49647</guid>
<title>Quick, easy controller question</title><link>http://forum.wiibrew.org/read.php?11,49647,49647#msg-49647</link><description><![CDATA[ Hello, I&#039;m just starting out messing around with coding for the Wii. I&#039;ve been looking at teknecal&#039;s great tutorials, and understand how to get input from one controller using<br />u16 var1 = PAD_ButtonsDown(0), etc.<br />I want to define a variable that checks if controller 2 is being pressed, so I tried,<br />u16 var2 = PAD_ButtonsDown(1),<br />but it seems the compiler doesn&#039;t like that.<br /><br />So how would I define a variable similar to var1 but for the second controller?<br />Thanks for any help]]></description>
<dc:creator>seek</dc:creator>
<category>Coding</category><pubDate>Sat, 20 Feb 2010 03:36:48 +0100</pubDate></item>
</channel>
</rss>