Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development


Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.


Reply
Highlighted
Developer
Posts: 41
Registered: ‎08-01-2008
My Device: Not Specified

Programmatically finding the location of the cursor used in the BB Browser?

Is it possible to poll for the existence & current coordinates of the "mouse" cursor which is used in the BB Browser? I'm building some remote access software and because the cursor doesn't show up in any screenshots, using applications like the BB Browser remotely is almost impossible because you can't tell where you are pointing (unless you happen to move the cursor across a hyperlink which will then change colour).

 

A bonus question would be, is it possible to set the location of the cursor programmaticaly?

BlackBerry Development Advisor
Posts: 15,885
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: Programmatically finding the location of the cursor used in the BB Browser?

There is no direct way to do this programmatically.  You could do this based on some calucations though.  For example, you could move the cursor to the top left corner of the Window, and then record where the cursor is moving based on the event injection methods you are using.

 

This does break down though if the user moves the track ball.

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Developer
Posts: 41
Registered: ‎08-01-2008
My Device: Not Specified

Re: Programmatically finding the location of the cursor used in the BB Browser?

That's a pity.. the solution you suggest might be worth trying but would be difficult as users would have to initiate it from the viewing end when they thought the cursor might be on the screen, and like you say anyone actually touching the trackball would throw it off. Plus our tracking of the cursor would be highly heuristic and liable to break on OS upgrades / require tailoring for each handset.

 

Thanks for the help anyway though.