wiiuse Forums Forum Index
wiiuse Forums
FAQ  FAQ   Search  Search   Memberlist  Memberlist   Usergroups  Usergroups
Register  ::  Log in Log in to check your private messages


Post new topic  Reply to topic
 release events not triggering event handler « View previous topic :: View next topic » 
Author Message
nauht
PostPosted: Mon Nov 05, 2007 4:07 am    Post subject: release events not triggering event handler Reply with quote



Joined: 04 Nov 2007
Posts: 5

Hi. Is it just me or are the release of buttons events not triggering the event handler callback? I've put a breakpoint in the handler function to see if a specific button gets release but it does not...
Back to top
View user's profile Send private message
para
PostPosted: Mon Nov 05, 2007 10:47 pm    Post subject: Reply with quote

Developer

Joined: 03 Feb 2007
Posts: 59

It seems that it has broken from a previous bug patch. I'll look at it and post a fix asap.
Back to top
View user's profile Send private message
para
PostPosted: Tue Nov 06, 2007 12:05 am    Post subject: Reply with quote

Developer

Joined: 03 Feb 2007
Posts: 59

Scratch that, it works.

In the example it is only outputting what buttons are currently pressed. If you do this:

Code:
void handle_event(struct wiimote_t* wm) {
   printf("\n\n--- EVENT [wiimote id %i] ---\n", wm->unid);

   if (IS_JUST_PRESSED(wm, WIIMOTE_BUTTON_A))      printf("A pressed\n");
   if (IS_RELEASED(wm, WIIMOTE_BUTTON_A))      printf("A released\n");

   if (wm->btns) {
   ...


It should say "A pressed" when A is pressed and "A released" when A is released.
Back to top
View user's profile Send private message
nauht
PostPosted: Tue Nov 06, 2007 7:24 pm    Post subject: Reply with quote



Joined: 04 Nov 2007
Posts: 5

Ahh, okay. Thanks!
Back to top
View user's profile Send private message
para
PostPosted: Tue Nov 06, 2007 10:38 pm    Post subject: Reply with quote

Developer

Joined: 03 Feb 2007
Posts: 59

Yeah I don't know why I did that, seems like a really stupid thing to do Rolling Eyes
Back to top
View user's profile Send private message
Post new topic  Reply to topic Page 1 of 1




You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


SourceForge.net Logo

DAJ Glass (1.0.8) template by Dustin Baccetti
Powered by phpBB © 2001, 2005 phpBB Group