Re: [Lazarus] Windows touch input

2018-01-21 Thread R0b0t1 via Lazarus
Hello friend,

2018-01-21 13:36 GMT-06:00 AlexeyT via Lazarus :
> How does Laz support touch input [e.g. on Surface from MS]. Where to read
> about it in wiki?
>

For most input, touch events are turned into mouse events. The most
basic events are WM_GESTURE[1] (received by default) and WM_TOUCH[2]
(opt-in) messages. WM_TOUCH will receive pen events. You may also
access these events using raw input and the WM_INPUT message, though
details on this are not as forthcoming.

However, from Windows 8 onward, there is a pointer API which unifies
pointer (generic), touch, pen, mouse, and touchpad input. Look at the
WM_POINTER*[3] messages for more details. The most control is granted
with this API, and you can, for example, get the pressure of the pen
on the screen as well as its pitch, roll, and yaw relative to the
screen.

You might also be interested in stylus/pen input, but it is much more
complicated.[4] If you wish to use another writing recognition
library, or do not need one, then you should be able to access these
events via WM_TOUCH, WM_POINTER*, or WM_INPUT. There is also a COM
object called a RealTimeStylus.[5]

Cheers,
 R0b0t1

[1]: 
https://msdn.microsoft.com/en-us/library/windows/desktop/dd353242(v=vs.85).aspx
[2]: 
https://msdn.microsoft.com/en-us/library/windows/desktop/dd317341(v=vs.85).aspx
[3]: 
https://msdn.microsoft.com/en-us/library/windows/desktop/hh454903(v=vs.85).aspx
[4]: 
https://msdn.microsoft.com/en-us/library/windows/desktop/ms704172(v=vs.85).aspx
[5]: 
https://msdn.microsoft.com/en-us/library/windows/desktop/dd940549(v=vs.85).aspx
-- 
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


[Lazarus] Windows touch input

2018-01-21 Thread AlexeyT via Lazarus
How does Laz support touch input [e.g. on Surface from MS]. Where to 
read about it in wiki?


--
Regards,
Alexey

--
___
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus