• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Movement event

 
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I want to find out which events are thrown when the keypad keys are pressed on a mobile phone. I want to use the up,down,left,right keys for movement. However I am not using a Canvas class and am not showing these events on the mobile phone. Basically I am using these movement keys to a server(Computer) and am using them to control the mouse on the Computer.

Basically, in short, what i want to know is the events OR ascii code that is thrown when a particular key is pressed on the mobile phone.
 
Ranch Hand
Posts: 1906
3
Hibernate Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm... actually not certain that you can get the key events from the midlet if you're not subclassing Canvas/GameCanvas. The high level events (through Displayable's items) are really more general, geared towards a more generalized interface that may not have a physical keyboard, like a PDA with a touch-screen.
 
saad sal
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ok thanks. I guess theres no other way then.....have used the Canvas class to move the mouse on PC screen through a Nokia 6630 .

But now I have another problem. I have to get the initial starting position of the mouse from the PC. I am trying to use


But this limits the mouse within a frame whereas I want this to work on anywhere on the PC screen and set the initial value of x and y.

Could anyone help me with this.
 
We find this kind of rampant individuality very disturbing. But not this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic