Will OpenLaszlo mouse events convert to touch events if i compile the code for mobile target?

208 Views Asked by At

I want to know whether the open laszlo mouse down events will be converted to touch events while compiling it in mobile format.

2

There are 2 best solutions below

1
On BEST ANSWER

Yes, at least on iPad. I tested this myself on an iPad2 running the OpenLaszlo 4.9.0 in HTML5 (aka DHTML) mode of my application last year for R&D purposes and the following were confirmed to work:

1) Touching a button on the screen in the application in OpenLaszlo HTML5 mode properly triggered the onclick event of the button.

2) Drag and drop with your finger on a touch screen in OpenLaszlo HTML5 mode has the same result as dragging and dropping with the mouse on a non-touch screen system.

Note: This was only tested on the iPad2, it was not tested on Android, Windows Phone, Blackberry, etc.

3
On

Flash is not relevant for mobile (since Flash Player has just been removed from Google Play store), but Adobe AIR for Android and iOS is an option, if you want to build native applications. In that case, you have to start capturing the touch events using the ActionScript3 API.