Imagination PowerVR SDK Blog

Touch screen app over am3517 evm


#1



< ="-" ="text/; =utf-8">

< name="GENERATOR" ="Office.org 3.2 Linux">
< ="text/">



Hi


I was
writing PowerVR applications over am3517 evm, trying to get input
from the on-board touch screen, and this statement was implemented
in RenderScene() in my program:


float
*pfTouch=0;


pfTouch
= (float*) PVRShellGet(prefPointerLocation);



But it
always returned 0, if it means that the touch screen was not
functioning? Or maybe I missed some settings to active the touch
screen? or lack of some software packages? need help.


thanks




#2

You will need to define PVRSHELL_OMAP3_TS_SUPPORT for your build. Also can you verify that tslib is present on the system?

The touch code works on other OMAP3 test boards, but unfortunately, we don’t have that particular board here so I can’t say for sure if this will work, I’m afraid.