11-03-2012 06:05 PM
Hi,
I got a simple game kind of app where the user has sort of a joystick and a fire button. The thing is that when you hold down the joystick (custom component - onTouch event listener) and at the same time you hit on the 'fire' button (also a custom component with onTouch listener) the 'fire' button does not receive an onTouch event.
If you check the cowbell example:
https://github.com/blackberry/Cascades-Samples/tre
you hold down the bell and you hit the cow at the same time .. there is no mooouuu
I can not figure out how to get this working. Does anyone know?
Thank you,
Toby
11-28-2012 05:25 PM
I've also just descovered this.
Can someone provide an answer?
12-02-2012 05:29 PM
.. I have not found any solution . The problem persists in Beta 4.
The only thing I can confirm is that it does not seem to be a hardware limitation. If you use 2 standard buttons you can hold one down and press the other one at the same time. It must be related to the custom components.
12-02-2012 05:33 PM
Could someone from BlackBerry provide the answer, it's really hiderencing my app.
12-07-2012 06:00 AM
Seriously, can someone from BB answer this???
12-07-2012 06:22 AM
In my opinion, onTouch event cant handle two controls at the same time. So you should think of gesture handler. It can emit multiple signals when its gesture is detected.
12-07-2012 10:14 AM
Thanks, I've implemented a tap handler by using the code described here:
https://developer.blackberry.com/cascades/referenc
TapHandler *pTapHandler = TapHandler::create().onTapped(myImageView, SLOT(onTappedHandler(bb::cascades::TapEvent*))); container->addGestureHandler(pTapHandler);
But it doesnt work:
Warning: Object::connect: No such slot bb::cascades::ImageView::onTappedHandler(bb::cascades::TapEvent*) in ../src/app.cpp:161 Warning: Object::connect: (receiver name: 'myImageView')
Any idea where I'm going wrong?
12-07-2012 10:27 AM
Nevermind, I've worked it out had the wrong slot name.
12-07-2012 11:05 AM
This solution does not work for me.
I need to be able to get the name of the object pressed and to find out if the user has stopped pressing the item.
How can I implement this with a tap event?