Page 1 of 1
Stylus event in LC
Posted: Fri Nov 13, 2020 9:42 am
by David.lc
Hello,
I would like to know if it is possible to capture the stylus event under LiveCode.
With the transition of my application from win7 to win10 there is a slight latency between the mouseDown and mouseMove event.
This creates inconvenience when a fast handwriting.
Have you ever observed this phenomenon?
Re: Stylus event in LC
Posted: Fri Nov 13, 2020 3:53 pm
by dunbarx
Anyone know what a "stylus" event is?
David?
Craig
Re: Stylus event in LC
Posted: Fri Nov 13, 2020 4:45 pm
by FourthWorld
Can you share the code for the mouseMove and mouseup handlers?
Re: Stylus event in LC
Posted: Mon Nov 16, 2020 8:51 am
by David.lc
I used this code :
Code: Select all
local nowDrawing
on mouseDoubleUp
set the points of graphic "line" to empty
end mouseDoubleUp
on mouseDown
put true into nowDrawing
set the points of graphic "line" to the points of graphic "line" & cr & the mouseLoc
end mouseDown
on mouseMove
if nowDrawing then set the points of graphic "line" to the points of graphic "line" & cr & the mouseLoc
end mouseMove
on mouseUp
put false into nowDrawing
set the points of graphic "line" to the points of graphic "line" & cr & cr
end mouseUp
(on a win 10 tablet (no problem with Win7))
When I use the mouse everything is fine.
But when I use the stylus, there is a slight time between the first point drawn and the second.
This does not happen with Paint for example, only with applications coded with LiveCode.
Re: Stylus event in LC
Posted: Mon Nov 16, 2020 3:17 pm
by dunbarx
Aha.
You meant you were drawing a shape using a stylus pad gadget instead of the mouse. My uninformed opinion is that the stylus gadget, not LC, is the issue.
Craig
Re: Stylus event in LC
Posted: Tue Nov 17, 2020 9:34 am
by David.lc
The issue does not appear with Paint or The WhiteBoard but only with LC.
(I am using a tablet PC with its own stylus, no pad)
Re: Stylus event in LC
Posted: Tue Nov 17, 2020 2:54 pm
by dunbarx
Hmmm.
I have no way of testing this. Anyone use a stylus along with a mouse to do things on their computers?
Craig