Page 3 of 3

Re: Wii U Pro Controller drivers for the Wii?

Posted: Sun Jul 21, 2013 10:07 pm
by tueidj
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).

Re: Wii U Pro Controller drivers for the Wii?

Posted: Wed Jul 24, 2013 1:04 am
by raphnet
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.
 */

Re: Wii U Pro Controller drivers for the Wii?

Posted: Wed Jul 24, 2013 5:01 am
by raphnet
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

Re: Wii U Pro Controller drivers for the Wii?

Posted: Wed Jul 24, 2013 10:50 am
by BenoitRen
Nintendo Maniac 64 wrote:No, it's NOT you're imagination.
your

Re: Wii U Pro Controller drivers for the Wii?

Posted: Wed Jul 24, 2013 9:11 pm
by Nintendo Maniac 64
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.

Re: Wii U Pro Controller drivers for the Wii?

Posted: Sat Jun 14, 2014 5:22 pm
by Naxil
@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

Re: Wii U Pro Controller drivers for the Wii?

Posted: Sat Jun 14, 2014 6:36 pm
by novenary
Hmm, you just necroposted a thread with an unrelated question. Congratulations !

Re: Wii U Pro Controller drivers for the Wii?

Posted: Tue Jun 24, 2014 7:55 pm
by BenoitRen
What's a nunchack?

Re: Wii U Pro Controller drivers for the Wii?

Posted: Tue Jun 24, 2014 8:24 pm
by iamdablasta
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]

Re: Wii U Pro Controller drivers for the Wii?

Posted: Thu Jun 26, 2014 3:57 pm
by BenoitRen
I wasn't actually asking a question. I was pointing out the ridiculous typo...

Re: Wii U Pro Controller drivers for the Wii?

Posted: Thu Jun 26, 2014 5:12 pm
by HomelandReloaded
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?

Re: Wii U Pro Controller drivers for the Wii?

Posted: Thu Jun 26, 2014 5:17 pm
by novenary
There should be a trollface emoticon on this forum for these types of situation. :P

Re: Wii U Pro Controller drivers for the Wii?

Posted: Thu Jun 26, 2014 6:09 pm
by iamdablasta
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 :^)

Re: Wii U Pro Controller drivers for the Wii?

Posted: Thu Jun 26, 2014 6:36 pm
by megalomaniac
BenoitRen wrote:I wasn't actually asking a question. I was pointing out the ridiculous typo...
^^^
I would like to point out an idiot

Re: Wii U Pro Controller drivers for the Wii?

Posted: Thu Jun 26, 2014 8:25 pm
by iamdablasta
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
:^)

Re: Wii U Pro Controller drivers for the Wii?

Posted: Fri Jun 27, 2014 1:20 pm
by BenoitRen
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.

Re: Wii U Pro Controller drivers for the Wii?

Posted: Fri Jun 27, 2014 2:07 pm
by MockyLock
I would like to point out that too much people pointed out.
:^o

Re: Wii U Pro Controller drivers for the Wii?

Posted: Fri Jun 27, 2014 3:56 pm
by iamdablasta
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 :^)

Re: Wii U Pro Controller drivers for the Wii?

Posted: Sat Jun 28, 2014 12:12 am
by megalomaniac
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!!

Re: Wii U Pro Controller drivers for the Wii?

Posted: Sat Jun 28, 2014 3:23 pm
by BenoitRen
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.

Re: Wii U Pro Controller drivers for the Wii?

Posted: Sun Jun 29, 2014 10:27 am
by iamdablasta
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.

Re: Wii U Pro Controller drivers for the Wii?

Posted: Sun Jun 29, 2014 3:39 pm
by Nintendo Maniac 64
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".

Re: Wii U Pro Controller drivers for the Wii?

Posted: Sun Jun 29, 2014 8:12 pm
by iamdablasta
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