hrugani
hrugani

Reputation: 477

Launching touch events programmatically

In my App I need to fire a touch event programmatically at a specific position on the device screen. How can I do this in CodeName One Framework?

Upvotes: 2

Views: 59

Answers (1)

Shai Almog
Shai Almog

Reputation: 52770

Invoke:

Form f = Display.getInstance().getCurrent();
f.pointerPressed(x, y);
f.pointerReleased(x, y);

Upvotes: 1

Related Questions