Author |
Message |
nauht |
Posted: Mon Nov 05, 2007 4:07 am Post subject: release events not triggering event handler
|
![Reply with quote Reply with quote](templates/DAJ_Glass/images/lang_english/icon_quote.gif) |
|
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 |
|
![](templates/DAJ_Glass/images/spacer.gif) |
para |
Posted: Mon Nov 05, 2007 10:47 pm Post subject:
|
![Reply with quote Reply with quote](templates/DAJ_Glass/images/lang_english/icon_quote.gif) |
|
![](/misc/para_avatar.gif)
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 |
|
![](templates/DAJ_Glass/images/spacer.gif) |
para |
Posted: Tue Nov 06, 2007 12:05 am Post subject:
|
![Reply with quote Reply with quote](templates/DAJ_Glass/images/lang_english/icon_quote.gif) |
|
![](/misc/para_avatar.gif)
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 |
|
![](templates/DAJ_Glass/images/spacer.gif) |
nauht |
Posted: Tue Nov 06, 2007 7:24 pm Post subject:
|
![Reply with quote Reply with quote](templates/DAJ_Glass/images/lang_english/icon_quote.gif) |
|
Joined: 04 Nov 2007
Posts: 5
|
|
Back to top |
|
![](templates/DAJ_Glass/images/spacer.gif) |
para |
Posted: Tue Nov 06, 2007 10:38 pm Post subject:
|
![Reply with quote Reply with quote](templates/DAJ_Glass/images/lang_english/icon_quote.gif) |
|
![](/misc/para_avatar.gif)
Developer
Joined: 03 Feb 2007
Posts: 59
|
Yeah I don't know why I did that, seems like a really stupid thing to do
|
|
Back to top |
|
![](templates/DAJ_Glass/images/spacer.gif) |
|