BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 02-22-2007, 09:15 AM   #1 (permalink)
Thumbs Must Hurt
 
Join Date: Jan 2007
Location: India
Model: 8700g
Carrier: Airtel
Posts: 117
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default how to use EventInjector.Event class?

Please Login to Remove!

I wanted to know how to use EventInjector.Event class.Actully i want to simulate trackwheel event using EventInjector.Event class.pls help.A quick reply would be appreciated.

Thanks
Meenal
Offline  
Old 02-22-2007, 12:42 PM   #2 (permalink)
New Member
 
Join Date: Feb 2007
Model: 8100
Posts: 2
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

hi,

here is a small example that klicks the Trackwheel once.

Code:
 EventInjector.TrackwheelEvent eDown = new EventInjector.TrackwheelEvent(
                                EventInjector.TrackwheelEvent.THUMB_CLICK, 1,
                                KeypadListener.STATUS_NOT_FROM_KEYPAD);
                EventInjector.TrackwheelEvent eUp = new EventInjector.TrackwheelEvent(
                                EventInjector.TrackwheelEvent.THUMB_UNCLICK, 1,
                                KeypadListener.STATUS_NOT_FROM_KEYPAD);

                eDown.post();
                eUp.post();
hope that helps,
mitschi
Offline  
Old 02-23-2007, 12:11 AM   #3 (permalink)
Thumbs Must Hurt
 
Join Date: Jan 2007
Location: India
Model: 8700g
Carrier: Airtel
Posts: 117
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default hi

thanks a lot.....it worked.
Offline  
Old 09-25-2007, 08:25 PM   #4 (permalink)
Knows Where the Search Button Is
 
Join Date: Sep 2007
Model: Curve
PIN: N/A
Carrier: non
Posts: 22
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hello)

How can I to simulate ROLL_LEFT and ROLL_RIGTH trackwheel event?

The EventInjector.TrackwheelEvent class contain follow fields:
static int THUMB_CLICK
static int THUMB_ROLL_DOWN
static int THUMB_ROLL_UP
static int THUMB_UNCLICK

But there are no fields for ROLL_LEFT/ROLL_RIGTH events.
How to simulate these events?

Thanks, Eugeny
Offline  
Old 10-12-2007, 03:14 PM   #5 (permalink)
Retired BBF Moderator
 
Mark Rejhon's Avatar
 
Join Date: Aug 2004
Location: Ottawa, Ontario, Canada
Model: Bold
Carrier: Rogers
Posts: 4,870
Post Thanks: 1
Thanked 0 Times in 0 Posts
Default

I think you need to upgrade to a newer JDE to get access to these new values (I think)
__________________
Thanks,
Mark Rejhon
Author of XMPP extension XEP-0301:
www.xmpp.org/extensions/xep-0301.html - specification
www.realjabber.org - open source
Offline  




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