Re: Re[2]: Support for graphical tablets
Iulian-Nicu Şerbănoiu <[email protected]> Mon, 26 Jan 2026 16:30:23 +0200
| Newsgroups | gmane.comp.lib.wxwindows.general |
|---|---|
| Message-ID | <CAJ5uX7rrpemLp_dxuVpHCZa8VHd6NitPD8CLM4C8KDhZ0FjS2A@mail.gmail.com> |
For Windows: https://learn.microsoft.com/en-us/windows/win32/inputmsg/wmpointer-reference For Linux (gtk): https://developer-docs.wacom.com/docs/icbt/linux/gtk/gtk-reference/ So the common events would be: move pendown pen up information that should be passed to the event: https://learn.microsoft.com/en-us/windows/win32/api/winuser/ns-winuser-pointer_pen_info & https://docs.gtk.org/gdk4/enum.AxisUse.html x,y, xTilt,yTilt, pressure. From what I saw there are ways to differentiate between these events and normal mouse events: - https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-getpointertype ( + https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-get_pointerid_wparam ) - https://docs.gtk.org/gdk4/method.Device.get_source.html So we have multiple inputs: https://docs.gtk.org/gdk4/enum.InputSource.html & https://learn.microsoft.com/en-us/windows/win32/api/winuser/ne-winuser-tagpointer_input_type - mouse - pen - touch (screen?) - pad So there is a need to clarify the common part and decide My take would be to generate some new events wxTabletEvent which contain the even information mentioned above. Waiting for any other suggestion. Thanks, Iulian On Mon, Jan 26, 2026 at 3:44 PM Vadim Zeitlin <[email protected]> wrote: > On Mon, 26 Jan 2026 15:39:31 +0200 Iulian-Nicu Şerbănoiu wrote: > > IN> I would give it a try for wxMSW and possibly wxGTK as I have access to > them. > IN> > IN> For MSW I believe I should start around here: > IN> > https://github.com/wxWidgets/wxWidgets/blob/8245e1073ae66fd246d2ec180160d2e20acf3644/src/msw/window.cpp#L3196 > IN> (I am familiar a little with Win32 API). Then I would go for the "Bind" > IN> method and EVT_ macros. > IN> > IN> Is there any interest in this implementation? > > It would be definitely useful to have support for more input devices, but > it would be better to discuss the API you plan to implement first. I have > no idea what information exactly is provided by these tablets (and whether > they all provide the same data or not), but the first question is whether > they should generate wxMouseEvents or some new wxDrawInputEvent. > > Regards, > VZ > > -- > TT-Solutions: wxWidgets consultancy and technical support > https://www.tt-solutions.com/ > -- Please read https://www.wxwidgets.org/support/mlhowto.htm before posting. --- You received this message because you are subscribed to the Google Groups "wx-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion visit https://groups.google.com/d/msgid/wx-users/CAJ5uX7rrpemLp_dxuVpHCZa8VHd6NitPD8CLM4C8KDhZ0FjS2A%40mail.gmail.com.