11-03-2012 06:05 PM
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:
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?
11-28-2012 05:25 PM
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
12-07-2012 06:00 AM
12-07-2012 10:14 AM
Thanks, I've implemented a tap handler by using the code described here:
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::casca
des::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
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?