keypad simulation | developer.brewmp.com keypad simulation | developer.brewmp.com

Developer

keypad simulation

Forums:

Can we simulate keypad in brew? currently samsung SCH-F679 (NX1) dose not support keypad? it works on touch pad.My application need keypad to enter text

pls help

For touch pad devices; applet gets EVT_TOUCH; and in addition to this event dwParam has 16bits of MSB as x coordinate and 16 bits of LSB as y coordinate.
y = dwParam & 0xffff;
x = (dwParam >> 16) & 0xffff;
Thus, depending upon (x,y) you can identify that on which UI component the touch event is occurred. Now you will have to map this touch event to key event according to ur screens.

For touch pad devices; applet gets EVT_TOUCH; and in addition to this event dwParam has 16bits of MSB as x coordinate and 16 bits of LSB as y coordinate.
y = dwParam & 0xffff;
x = (dwParam >> 16) & 0xffff;
Thus, depending upon (x,y) you can identify that on which UI component the touch event is occurred. Now you will have to map this touch event to key event according to ur screens.