This sample code has been developed by Streamezzo.
Its purpose is to illustrate to manage touchscreen areas.

<%@page import="com.streamezzo.odp.utils.ShapeUtils" %>
<%
int screenWidth = userAgent.getScreenWidth();
int screenHeight = userAgent.getScreenHeight();
%>
" colorBits="8"
lengthBits="16" resolution="1" idBits="16" scaleBits="15"
encodingType="0"/>
<%
final int areaSize = (int) Math.min((screenWidth / 2f), (screenHeight / 2f));
%>
"/>
"/>
"/>
"/>
"/>
| Attachment | Size |
|---|---|
| Touchscreen.swz | 27.19 KB |