Keith Fox

Greenhorn
+ Follow
since Jan 10, 2010
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Keith Fox

"I've scoured the web trying to find information about this, and am only more confused."

I google'd for this for several hours actually. I found information that it "could" be done, but never any actual code listings.

I will probably go ahead and use the RIM API's. I figure I can design the program in both versions side-by-side in Netbeans for standard J2ME and eclipse for BB specifically, RIM decided support the Eclipse JDE over Netbeans for some reason.


Sincerely,
Keith Fox
14 years ago
First, I have already searched the previous posts with no luck.

I am new to J2ME programming.

My program runs without errors on the blackberry "actual phone", as well as several other phone emulators.


My problem lies with receiving input from the trackball.

I've scoured the web trying to find information about this, and am only more confused.

I am trying to stay away from any RIM-specific API's so the game is more portable.


I found information stating I have to capture the input from the GameCanvas or Canvas "LEFT, RIGHT, UP, DOWN". There is also supposed to be a way to capture the trackball being pressed without the RIM-specific API's.

Can anyone give me a code snippet that basically shows how to do this working off of "javax.microedition.lcdui.game.GameCanvas;"?


Thanks in advance,
Keith
14 years ago