moops4587 / wjoy

Automatically exported from code.google.com/p/wjoy
0 stars 0 forks source link

Wiimote Balance Board initWithOwner #33

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Balance board in experimental does not register notifications and fails to 
initialize as a balance board extension because the initWithOwner calls self = 
[super init];

[super init] ends up getting set to nil; the method responsible for iterating 
through possible extensions checks to see if its a NULL pointer and passes on 
to an Unknown Extension.

Replacing the self = [super init] with the following both allows the extension 
class to be correct as well as initialize the dispatcher correctly.

    self = [super initWithOwner:owner eventDispatcher:dispatcher];
    if(self == nil)
        return nil;

Original issue reported on code.google.com by mikep...@gmail.com on 19 Nov 2013 at 8:29

GoogleCodeExporter commented 8 years ago
O! It's amazing, big thanks, Mike!

I wrote this plugin only for future use, and i can't test it - i have no 
Balance Board device. :(

Changes commited :)

Original comment by alexandr.serkov on 19 Nov 2013 at 8:44