BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 04-04-2007, 11:15 AM   #1 (permalink)
New Member
 
Join Date: Apr 2007
Model: 8800
Carrier: Nose
Posts: 2
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default 8800 trackball

Please Login to Remove!

Hello,
anybody was able to detect left and right movement of the trackball on the 8800 ?

I tried navigationMovement, trackwheelRoll, but neither work...

Thanks!
Diego
Offline  
Old 04-04-2007, 04:37 PM   #2 (permalink)
Knows Where the Search Button Is
 
Join Date: Aug 2006
Model: 8300
Carrier: Cingular
Posts: 35
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

navigationMovement works fine for detecting left and right. The "dx" parameter indicates left (negative) or right (positive) motion.
Offline  
Old 04-05-2007, 09:49 AM   #3 (permalink)
New Member
 
Join Date: Apr 2007
Model: 8800
Carrier: Nose
Posts: 2
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

The problem is that the method isn't called, maybe I forgot something.

This is my code:

public class GameCanvasEx extends MainScreen implements Runnable
{
...
// lot of code here
...

protected boolean navigationMovement(int dx, int dy, int status, int time)
{
_dbgX = dx;
_dbgY = dy;
_dbgStatus = status;
return true;
}
}


There's something I'm missing ?
Offline  
Old 04-05-2007, 03:41 PM   #4 (permalink)
Knows Where the Search Button Is
 
Join Date: Aug 2006
Model: 8300
Carrier: Cingular
Posts: 35
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

You probably need to repaint the screen.

Code:
 protected boolean navigationMovement(int dx, int dy, int status, int time)
{
_dbgX = dx;
_dbgY = dy;
_dbgStatus = status;

invalidate();

return true;
}
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

LOT OF 2 MKS 901P-11040 VACUUM PRESSURE LOADLOCK TRANSDUCER WITH WARRANTY
$199.99
LOT OF 2 MKS 901P-11040 VACUUM PRESSURE LOADLOCK TRANSDUCER WITH WARRANTY pictureASCO SB10D TriPoint Pressure Switch With TG10A11 Transducer
$99.95
ASCO SB10D TriPoint Pressure Switch With TG10A11 Transducer  pictureDynisco PT412-3M-6/18-C16 Pressure Transducer - New No Box
$199.0
Dynisco PT412-3M-6/18-C16  Pressure Transducer - New No Box pictureSetra Model 280E Pressure Transducer, 0-250 PSIG=15-32 vdc
$20.0
Setra Model 280E Pressure Transducer, 0-250 PSIG=15-32 vdc pictureMEdiwatch IP33 Flow Transducer 9034K0103
$150.0
MEdiwatch IP33 Flow Transducer 9034K0103 picture






Copyright 2004-2016 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.