17.04.2016, 07:00
(This post was last modified: 17.04.2016, 07:15 by Erwin van der Zwart.)
Hi,
I updated/improved the code in the original post.
I changed a couple of timings to make it respond better on iOS.
Also added a remark to set status object to dummy object when not used to
make sure the main object won't update the button when longpress is reached. I will ask developer If and how we can bypass that.
For pc usage you probably won 't notice the difference but I would
advice to use current code to be real multi platform. I haven't test
on Android yet but i think it will run without issues.
BR,
Erwin van der Zwart
I updated/improved the code in the original post.
I changed a couple of timings to make it respond better on iOS.
Also added a remark to set status object to dummy object when not used to
make sure the main object won't update the button when longpress is reached. I will ask developer If and how we can bypass that.
For pc usage you probably won 't notice the difference but I would
advice to use current code to be real multi platform. I haven't test
on Android yet but i think it will run without issues.
BR,
Erwin van der Zwart