EOSM Touch Events

Started by garry23, July 25, 2016, 02:19:45 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

garry23

Has anyone played around with Lua on an EOSM?

Specifically detecting touch events, ie in different areas of the screen and double tap etc, and if they have, could they share their scripting with me, ie to help me kick-start my EOSM touch scripting  ;)

Cheers

Garry

dmilligan


garry23

@David

Thanks for the links: I'll read through and start the education process  ;)

Cheers

Garry

garry23

@David

BTW I noted that you use integer division, ie //. Do you use that for speed, or for some other reason?

Cheers

Garry

dmilligan

I just don't see a reason to use floating points if you don't need them. Yes it is faster, IDK if you would notice a difference unless it was some calculation that was repeated a lot.

garry23

@David

Thanks and I look at 'exploiting' integer math as I tweak/write my scripts.

As you imply, in this case, the answer will only be integer, ie pixel x-y coordinates  ;)

Cheers

Garry