Wii U Pro Controller drivers for the Wii?

Find all your Nintendo Wii related topics here
tueidj
Posts: 564
Joined: Fri May 03, 2013 6:57 am

Re: Wii U Pro Controller drivers for the Wii?

Post by tueidj » Sun Jul 21, 2013 10:07 pm

raphnet wrote:I like that, it is much simpler than implementing a special mode. So how about the following structure?

Code: Select all

/*       |                 Bit                                |
 * Byte  |   7   |   6   |   5   |  4  |  3 |  2 |  1  |  0   |
 * ------+---------------+-------+----------------------------+
 *  0    |    RX<4:3>    |            LX<5:0>                 |
 *  1    |    RX<2:1>    |           LY<5:0>                  |
 *  2    | RX<0> |    LT<4:3>    |      RY<4:0>               |
 *  3    |        LT<2:0>        |      RT<4:0>               |
 *  4    | BDR   |  BDD  |  BLT  |  B- | BH | B+  | BRT | 1   |
 *  5    | BZL   |   BB  |  BY   | BA  | BX | BZR | BDL | BDU |
 *  6    | GC Left stick/N64 stick raw X value                |
 *  7    | GC Left stick/N64 stick raw Y value                |
 *  8    | GC C-stick raw X value                             |
 *  9    | GC C-stick raw Y value                             |
 *  10   | GC Left shoulder raw X value                       |
 *  11   | GC Right shoulder raw Y value                      |
 *  12   | 0x52 ('R')                                         |
 *  13   | 0x4E ('N')                                         |
 *  14   | 0x54 ('T')
 */
I think that's fine. The only thing I would suggest double-checking is what happens when it's used with an "active" wii motion plus in passthrough mode (see http://wiibrew.org/wiki/Wiimote/Extensi ... rough_mode) but I don't know of any games using that mode anyway since it's not practical to hold a wiimote+ and controller at the same time.

About rumble, afaik the GC pad's motor is designed to run off 5V rather than 3.3V supplied by the wiimote. Some people have told me that's still enough to make it work but I would be worried about it pulling too much current and killing the wiimote. However if you still want rumble functionality (maybe add a 9V battery option to the adapter) I could add code to control rumble by writing a byte somewhere in the extension memory (similar to how the encryption is configured).
raphnet
Posts: 3
Joined: Sun Jul 21, 2013 3:09 pm
Location: Montreal, Canada
Contact:

Re: Wii U Pro Controller drivers for the Wii?

Post by raphnet » Wed Jul 24, 2013 1:04 am

The current version of my adapter does not supply any voltage to the 5 volt wire, so I cannot implement rumble right now. But now that there is clearly a good use case for rumble, I will start thinking of a good way to do it. I'm not sure it will be using batteries.

However we can still define the protocol in advance. I suggest simply adding a byte at the end of the structure I proposed earlier.
Rumble motor is on when non zero. The value can be read back.

I also changed the signature bytes to make it possible to detect if the raw data is GC or N64 since the range and signedness is different.

Please comment. Otherwise I'm ready to test any time.

Code: Select all

/*       |                 Bit                                |
 * Byte  |   7   |   6   |   5   |  4  |  3 |  2 |  1  |  0   |
 * ------+---------------+-------+----------------------------+
 *  0    |    RX<4:3>    |            LX<5:0>                 |
 *  1    |    RX<2:1>    |           LY<5:0>                  |
 *  2    | RX<0> |    LT<4:3>    |      RY<4:0>               |
 *  3    |        LT<2:0>        |      RT<4:0>               |
 *  4    | BDR   |  BDD  |  BLT  |  B- | BH | B+  | BRT | 1   |
 *  5    | BZL   |   BB  |  BY   | BA  | BX | BZR | BDL | BDU |
 *
 *  6    | GC Left stick/N64 stick raw X value                |
 *  7    | GC Left stick/N64 stick raw Y value                |
 *  8    | GC C-stick raw X value                             |
 *  9    | GC C-stick raw Y value                             |
 *  10   | GC Left shoulder raw X value                       |
 *  11   | GC Right shoulder raw Y value                      |
 *  12   | 0x52 ('R')                                         |
 *  13   | Controller ID byte 0                               |
 *  14   | Controller ID byte 1                               |
 *  15   | Rumble status (RW) for future use                  |
 *
 *  Controller ID:
 *
 *   0   |  1     
 *  -----+-----
 *   '6' | '4'    N64 controller
 *   'G' | 'C'    Gamecube controller
 *
 * When neither a N64 nor GC controller is connected, all values from
 * byte 6 up to byte 14 are 0x00.
 *
 * Writing at byte 15 controls the rumble motor. Rumble on when non-zero.
 */
raphnet
Posts: 3
Joined: Sun Jul 21, 2013 3:09 pm
Location: Montreal, Canada
Contact:

Re: Wii U Pro Controller drivers for the Wii?

Post by raphnet » Wed Jul 24, 2013 5:01 am

Not sure if it helps, but I modified libOGC and wrote a simple example to display the raw Gamecube and N64 values the next adapter version will be exposing.

http://www.raphnet.net/programmation/ex ... dex_en.php
BenoitRen
Posts: 263
Joined: Sun Jul 29, 2012 3:37 pm

Re: Wii U Pro Controller drivers for the Wii?

Post by BenoitRen » Wed Jul 24, 2013 10:50 am

Nintendo Maniac 64 wrote:No, it's NOT you're imagination.
your
Hardware: Wii (PAL)
Hardware configuration: System Menu 4.1E, Priiloader
Swiss boot method: Modified Wii Swiss Booter provided by Extrems
Software medium: Retail discs
User avatar
Nintendo Maniac 64
Posts: 129
Joined: Mon Dec 24, 2012 4:02 am

Re: Wii U Pro Controller drivers for the Wii?

Post by Nintendo Maniac 64 » Wed Jul 24, 2013 9:11 pm

BenoitRen wrote:
Nintendo Maniac 64 wrote:No, it's NOT you're imagination.
your
Well that's embarrassing...

To my credit, I made that post within like 20 minutes of waking up. Normally I'm totally OCD about my own grammar to the point that at times I'll keep editing my post up to an hour after posting just revising the wording and fixing the grammar.
Naxil
Posts: 40
Joined: Sat Oct 29, 2011 10:56 pm

Re: Wii U Pro Controller drivers for the Wii?

Post by Naxil » Sat Jun 14, 2014 5:22 pm

@tueidj
Hi, i have a question , why u not leave the possibility for play GC games with wiimote+nunchak? i know it is near impossible with some games, but other kind of games can be played with wiimote+nunchack
User avatar
Streetwalker
Posts: 1736
Joined: Mon Dec 30, 2013 7:50 am
Location: Israel

Re: Wii U Pro Controller drivers for the Wii?

Post by Streetwalker » Sat Jun 14, 2014 6:36 pm

Hmm, you just necroposted a thread with an unrelated question. Congratulations !
BenoitRen
Posts: 263
Joined: Sun Jul 29, 2012 3:37 pm

Re: Wii U Pro Controller drivers for the Wii?

Post by BenoitRen » Tue Jun 24, 2014 7:55 pm

What's a nunchack?
Hardware: Wii (PAL)
Hardware configuration: System Menu 4.1E, Priiloader
Swiss boot method: Modified Wii Swiss Booter provided by Extrems
Software medium: Retail discs
User avatar
iamdablasta
Posts: 327
Joined: Thu Jan 30, 2014 9:24 pm

Re: Wii U Pro Controller drivers for the Wii?

Post by iamdablasta » Tue Jun 24, 2014 8:24 pm

BenoitRen wrote:What's a nunchack?
ヌンチャク
Nunchaku
Nunchuck
nun·cha·ku [nuhn-chah-koo]
noun
Sometimes, nunchakus. an Oriental hand weapon for defense against frontal assault, consisting of two foot-long hardwood sticks joined by a chain or thick cord that stretches to body width.





P.S Look at attached file.
[attachment=0]nunchuck.png[/attachment]
Attachments
nunchuck.png
nunchaku
(13.09 KiB) Not downloaded yet
the game
BenoitRen
Posts: 263
Joined: Sun Jul 29, 2012 3:37 pm

Re: Wii U Pro Controller drivers for the Wii?

Post by BenoitRen » Thu Jun 26, 2014 3:57 pm

I wasn't actually asking a question. I was pointing out the ridiculous typo...
Hardware: Wii (PAL)
Hardware configuration: System Menu 4.1E, Priiloader
Swiss boot method: Modified Wii Swiss Booter provided by Extrems
Software medium: Retail discs
HomelandReloaded

Re: Wii U Pro Controller drivers for the Wii?

Post by HomelandReloaded » Thu Jun 26, 2014 5:12 pm

Actually nunchack is the more correct spelling, as it is in fact named after that martial arts instrument. While I'm being pedantic, here's a tongue-twister to practice pronunciation:

How many nuns could a nunchuk chuck, if a nunchuk could chuck nuns?
User avatar
Streetwalker
Posts: 1736
Joined: Mon Dec 30, 2013 7:50 am
Location: Israel

Re: Wii U Pro Controller drivers for the Wii?

Post by Streetwalker » Thu Jun 26, 2014 5:17 pm

There should be a trollface emoticon on this forum for these types of situation. :P
User avatar
iamdablasta
Posts: 327
Joined: Thu Jan 30, 2014 9:24 pm

Re: Wii U Pro Controller drivers for the Wii?

Post by iamdablasta » Thu Jun 26, 2014 6:09 pm

I took you as serious as you took his typo.

This the emoticon you looking for, sw?
:^)
It's not exactly a trollface, but rather an ironic/sarcastic smiley "often" (as in rarely) included with troll comments.

P.S What was the topic about again? I forgot :^)
the game
User avatar
megalomaniac
Posts: 2480
Joined: Sun Aug 21, 2011 5:33 am
Location: Drunk in Texas
Contact:

Re: Wii U Pro Controller drivers for the Wii?

Post by megalomaniac » Thu Jun 26, 2014 6:36 pm

BenoitRen wrote:I wasn't actually asking a question. I was pointing out the ridiculous typo...
^^^
I would like to point out an idiot
emu_kidid wrote: beer is like WD40 for megalomaniac's brain, gets the gears moving
>>> BadAssConsoles.com <<<

Image Image Image
User avatar
iamdablasta
Posts: 327
Joined: Thu Jan 30, 2014 9:24 pm

Re: Wii U Pro Controller drivers for the Wii?

Post by iamdablasta » Thu Jun 26, 2014 8:25 pm

megalomaniac wrote:
BenoitRen wrote:I wasn't actually asking a question. I was pointing out the ridiculous typo...
^^^
I would like to point out an idiot
:^)
the game
BenoitRen
Posts: 263
Joined: Sun Jul 29, 2012 3:37 pm

Re: Wii U Pro Controller drivers for the Wii?

Post by BenoitRen » Fri Jun 27, 2014 1:20 pm

megalomaniac wrote:
BenoitRen wrote:I wasn't actually asking a question. I was pointing out the ridiculous typo...
^^^
I would like to point out an idiot
I would like to point out a moderator that breaks rules he's supposed to enforce.
Hardware: Wii (PAL)
Hardware configuration: System Menu 4.1E, Priiloader
Swiss boot method: Modified Wii Swiss Booter provided by Extrems
Software medium: Retail discs
User avatar
MockyLock
Posts: 325
Joined: Tue Aug 07, 2012 8:12 pm

Re: Wii U Pro Controller drivers for the Wii?

Post by MockyLock » Fri Jun 27, 2014 2:07 pm

I would like to point out that too much people pointed out.
:^o
User avatar
iamdablasta
Posts: 327
Joined: Thu Jan 30, 2014 9:24 pm

Re: Wii U Pro Controller drivers for the Wii?

Post by iamdablasta » Fri Jun 27, 2014 3:56 pm

BenoitRen wrote:
megalomaniac wrote:
BenoitRen wrote:I wasn't actually asking a question. I was pointing out the ridiculous typo...
^^^
I would like to point out an idiot
I would like to point out a moderator that breaks rules he's supposed to enforce.
Rules are basically not to post; abusive, obscene, vulgar, slanderous, hateful, threatening, sexually-orientated, or illegal content.


I guess calling someone an idiot is allowed :^)
the game
User avatar
megalomaniac
Posts: 2480
Joined: Sun Aug 21, 2011 5:33 am
Location: Drunk in Texas
Contact:

Re: Wii U Pro Controller drivers for the Wii?

Post by megalomaniac » Sat Jun 28, 2014 12:12 am

BenoitRen wrote:
megalomaniac wrote:
BenoitRen wrote:I wasn't actually asking a question. I was pointing out the ridiculous typo...
^^^
I would like to point out an idiot
I would like to point out a moderator that breaks rules he's supposed to enforce.
break which rule?
show me the rules im suppose to enforce...

this started because you felt the need to point out the fact someone made a typo...
a "ridiculous typo"
you made your "nunchack" comment and just 4 posts prior you had once again pointed out another typo "your"

i can understand if you feel the urge to point out other peoples punctuation mistakes, but then you must also extend the courtesy to the fact that i feel the urge to point out idiots who happen to feel the urge to point out typos



any questions? you idiot!!
emu_kidid wrote: beer is like WD40 for megalomaniac's brain, gets the gears moving
>>> BadAssConsoles.com <<<

Image Image Image
BenoitRen
Posts: 263
Joined: Sun Jul 29, 2012 3:37 pm

Re: Wii U Pro Controller drivers for the Wii?

Post by BenoitRen » Sat Jun 28, 2014 3:23 pm

iamdablasta wrote:Rules are basically not to post; abusive, obscene, vulgar, slanderous, hateful, threatening, sexually-orientated, or illegal content.


I guess calling someone an idiot is allowed :^)
Calling someone an idiot is vulgar and can be argued to be hateful.
Hardware: Wii (PAL)
Hardware configuration: System Menu 4.1E, Priiloader
Swiss boot method: Modified Wii Swiss Booter provided by Extrems
Software medium: Retail discs
User avatar
iamdablasta
Posts: 327
Joined: Thu Jan 30, 2014 9:24 pm

Re: Wii U Pro Controller drivers for the Wii?

Post by iamdablasta » Sun Jun 29, 2014 10:27 am

BenoitRen wrote:
iamdablasta wrote:Rules are basically not to post; abusive, obscene, vulgar, slanderous, hateful, threatening, sexually-orientated, or illegal content.


I guess calling someone an idiot is allowed :^)
Calling someone an idiot is vulgar and can be argued to be hateful.
[quote]vul·gar (vlgr)
adj.
1. Crudely indecent.
2.
a. Deficient in taste, delicacy, or refinement.
b. Marked by a lack of good breeding; boorish. See Synonyms at common.
c. Offensively excessive in self-display or expenditure; ostentatious: the huge vulgar houses and cars of the newly rich.
3. Spoken by or expressed in language spoken by the common people; vernacular: the technical and vulgar names for an animal species.
4. Of or associated with the great masses of people; common.[/quote]

Wasn't very indecent now was it? Vulgarity is commonly referring to sexual content.
[quote]hate·ful (htfl)
adj.
1. Eliciting or deserving hatred.
2. Feeling or showing hatred; malevolent.[/quote]

Nope, calling someone an idiot does not mean you hate them. I call my friends idiots all the time, and right back at me I get called an idiot often too.

I'm not saying that going around calling people idiots on a forum is a good idea, but there really is no rule against it. Post-stalking to call you an idiot on every post could be considered hateful, but I haven't seen any case of this.

Honestly the rules are in the operators favour, they can shit on us as much as they want.
the game
User avatar
Nintendo Maniac 64
Posts: 129
Joined: Mon Dec 24, 2012 4:02 am

Re: Wii U Pro Controller drivers for the Wii?

Post by Nintendo Maniac 64 » Sun Jun 29, 2014 3:39 pm

iamdablasta wrote:Nope, calling someone an idiot does not mean you hate them.
Otherwise the "tsundere" would not even exist.

protip: they do exist in real life, but more as the classic visual novel type (arguably called "kuutsundere") rather than as the modern-day "Shana-clone".
User avatar
iamdablasta
Posts: 327
Joined: Thu Jan 30, 2014 9:24 pm

Re: Wii U Pro Controller drivers for the Wii?

Post by iamdablasta » Sun Jun 29, 2014 8:12 pm

Nintendo Maniac 64 wrote:
iamdablasta wrote:Nope, calling someone an idiot does not mean you hate them.
Otherwise the "tsundere" would not even exist.

protip: they do exist in real life, but more as the classic visual novel type (arguably called "kuutsundere") rather than as the modern-day "Shana-clone".
All these terms to google, my god.
I also came across things I might have been better off not clicking. . .

So, you're saying mega is either hateful against benoit, that or he is very keen on him?
:^)



Image
the game
Post Reply