Results 1 to 1 of 1
- 12-28-2012, 04:44 AM
Thread Author #1
Motion event detection
I'm trying to make a simple game only with motion gestures with marmalade c++. I would like to disable single touch events and enable only motion events.
The point of the game is to drag images over the surface around some barriers, but if single touch is enabled then the images jump to the spot where I touch the screen. I would like to make the images to move only on motion events.
Is it even posible?
Sorry for my bad english....
My code for touch detection is
<code>
void HandleSingleTouchButtonCB(s3ePointerEvent* event)
{
CTouch* touch = g_Input.getTouch(0);
touch->active = event->m_Pressed != 0;
touch->x = event->m_x;
touch->y = event->m_y;
}
//
// HandleSingleTouchMotionCB - The system will call this callback when the user moves their finger on the screen
//
void HandleSingleTouchMotionCB(s3ePointerMotionEvent* event)
{
CTouch* touch = g_Input.getTouch(0);
touch->x = event->m_x;
touch->y = event->m_y;
}
</code>
Similar Threads
-
upcoming events in calendar on home screen
By md_massimino in forum General BlackBerry DiscussionReplies: 2Last Post: 07-29-2007, 01:11 PM -
8100: Adding Outlook Calendar Events to my Blackberry Calendar
By bmoses76 in forum BlackBerry Pearl 8100Replies: 2Last Post: 05-31-2007, 02:44 PM -
Research In Motion use LEGO Machines to Test Blackberry
By MMB916 in forum General BlackBerry DiscussionReplies: 2Last Post: 04-24-2007, 11:26 PM -
New BlackBerry Should Help Research in Motion Profit in Fourth Quarter, Say Analysts
By kasperapd in forum News & RumorsReplies: 6Last Post: 04-12-2007, 04:55 AM -
Research in Motion sales expected to surge
By MMB916 in forum News & RumorsReplies: 2Last Post: 04-08-2007, 06:19 PM
Reply















