Stylus event in LC
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Stylus event in 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?
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
Anyone know what a "stylus" event is?
David?
Craig
David?
Craig
-
- VIP Livecode Opensource Backer
- Posts: 10054
- Joined: Sat Apr 08, 2006 7:05 am
- Contact:
Re: Stylus event in LC
Can you share the code for the mouseMove and mouseup handlers?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
Re: Stylus event in LC
I used this code :
(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.
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
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
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
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
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)
(I am using a tablet PC with its own stylus, no pad)
Re: Stylus event in LC
Hmmm.
I have no way of testing this. Anyone use a stylus along with a mouse to do things on their computers?
Craig
I have no way of testing this. Anyone use a stylus along with a mouse to do things on their computers?
Craig