Package ilcd
Class TouchEvent
int getFieldIdx()
_INSERT_METHOD_SIGNATURE_HERE_
Description:
| Returns | Range | Description |
|---|---|---|
| fieldIdx | 0 ... 63 | value which is set when a touch field is created and defined |
The fieldIdx variable is used to determine which created and defined touch field is pressed, released, or moved. The value is set during the Touch.createDefineTouchField(int, int) method is called which create and define a new touch field within the screen.
Example
public void onTouch(TouchEvent event)
{ ...
if(event.isTouchReleased())
{
Draw.writeText(" getFieldIdx: " + event.getFieldIdx());
...
See also:
Copyright © demmel products gmbh. All rights reserved.