unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Po Lu <luangruo@yahoo.com>
To: emacs-devel@gnu.org
Subject: Re: master 5eb729c0b36 1/2: Report touch events on MS-Windows
Date: Sun, 09 Jun 2024 20:52:57 +0800	[thread overview]
Message-ID: <87plsqcm6u.fsf@yahoo.com> (raw)
In-Reply-To: <20240609124127.8FF7BC1FB41@vcs2.savannah.gnu.org> (Po Lu via Mailing list for Emacs changes's message of "Sun, 9 Jun 2024 08:41:27 -0400 (EDT)")

Po Lu via Mailing list for Emacs changes <emacs-diffs@gnu.org> writes:

> branch: master
> commit 5eb729c0b36a31869cf4928bc7bf5111b6f59ebb
> Author: Po Lu <luangruo@yahoo.com>
> Commit: Po Lu <luangruo@yahoo.com>
>
>     Report touch events on MS-Windows
>     
>     * etc/NEWS: Announce change.
>     
>     * src/w32fns.c (RegisterTouchWindow_fn): New function.
>     (w32_createwindow): Assign a base value for touch event
>     identifiers to the frame, and register for touch input.
>     (w32_wnd_proc): Forward WM_TOUCH/WM_TOUCHMOVE messages to the
>     main thread.
>     (globals_of_w32fns): Load RegisterTouchWindow from user32.dll.
>     
>     * src/w32term.c (w32_read_socket) <WM_TOUCH>: Detect WM_TOUCH
>     events, compare and record their touch points with and into the
>     frame's record of their prior state, and report the same to Lisp.
>     (pfnCloseTouchInputHandle, pfnGetTouchInputInfo): New variables.
>     (w32_initialize): Load the above functions from user32.dll.
>     
>     * src/w32term.h (MAX_TOUCH_POINTS): New definition.
>     (struct w32_output) <touch_ids, touch_x, touch_y, touch_base>:
>     New fields.

Folks, I got around to writing this code earlier than anticipated, but
it has not been tested with real user input.  If there are MS-Windows
users with the relevant touch input hardware reading this, let one of
them come forth and do us this trivial service, and his efforts will be
appreciated.



       reply	other threads:[~2024-06-09 12:52 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <171793688669.9415.6886845400214495261@vcs2.savannah.gnu.org>
     [not found] ` <20240609124127.8FF7BC1FB41@vcs2.savannah.gnu.org>
2024-06-09 12:52   ` Po Lu [this message]
2024-06-09 15:54     ` master 5eb729c0b36 1/2: Report touch events on MS-Windows Zhengyi Fu
2024-06-10  0:30       ` Po Lu
2024-06-11 12:22         ` Zhengyi Fu
2024-06-11 12:58           ` Po Lu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87plsqcm6u.fsf@yahoo.com \
    --to=luangruo@yahoo.com \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).