Package ilcd
Class Control

Public Method getCursorPosition

static Position getCursorPosition()

_INSERT_METHOD_SIGNATURE_HERE_

Description:

Returns Description
static Position cursor position

This method is used to obtain the current cursor position within the used display boundary. The Position return type delivers the x (horizontal axis) and y (vertical axis) values of the cursor position.

Note

Example

Position actualPosition = Control.getCursorPosition();

int x = actualPosition.getX();

int y = actualPosition.getY();

Alternatively a value can be optained with a single call:

int x = Control.getCursorPosition().getX();

int y = Control.getCursorPosition().getY();

See also:

Position
Control.setCursorPosition(int, int)