<div dir="ltr"><div class="gmail_default" style="font-family:monospace,monospace">Hi,</div><div class="gmail_default" style="font-family:monospace,monospace"><br></div><div class="gmail_default" style="font-family:monospace,monospace">I'm adding states to implement the above changes and have a query regarding the 'tap_event' enum. What do the enum values 'TAP_EVENT_THUMB, TAP_EVENT_PALM' mean. </div><div class="gmail_default" style="font-family:monospace,monospace">Do they mean that a thumb or palm has been placed on the touchpad, or that one of the touch locations is actually a thumb or palm? If latter is the case, what does the value 'TAP_EVENT_PALM_UP' mean?</div></div><br><div class="gmail_quote"><div dir="ltr">On Sat, Jul 14, 2018 at 3:09 PM Sagar Tewari <<a href="mailto:iaansagar@gmail.com">iaansagar@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-family:monospace,monospace">Hi,</div><div class="gmail_default" style="font-family:monospace,monospace"><br></div><div class="gmail_default" style="font-family:monospace,monospace">This is the proposed design of state machine for implementing right click drag as double tap followed by a single tap. I intend to implement the middle tap drag in a similar way. The new stuff in inside the dashed boundaries. This is the intended behaviour:</div><div class="gmail_default" style="font-family:monospace,monospace"><br></div><div class="gmail_default" style="font-family:monospace,monospace">1. A double tap followed by a single tap and move will act as a right click drag.</div><div class="gmail_default" style="font-family:monospace,monospace"><br></div><div class="gmail_default" style="font-family:monospace,monospace">2. If drag lock is enabled, the user will have to tap to end the right click drag.</div><div class="gmail_default" style="font-family:monospace,monospace"><br></div><div class="gmail_default" style="font-family:monospace,monospace">Please review it and let me know of any required modifications.</div><div class="gmail_default" style="font-family:monospace,monospace"><br></div></div><br><div class="gmail_quote"><div dir="ltr">On Thu, Jul 12, 2018 at 8:22 AM Sagar Tewari <<a href="mailto:iaansagar@gmail.com" target="_blank">iaansagar@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto">Thanks, I'll get myself working on it.</div><br><div class="gmail_quote"><div dir="ltr">On Thu, Jul 12, 2018, 08:19 Peter Hutterer <<a href="mailto:peter.hutterer@who-t.net" target="_blank">peter.hutterer@who-t.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Tue, Jul 10, 2018 at 01:06:17PM +0530, Sagar Tewari wrote:<br>
> I would like to work on implementing right and middle click drag as<br>
> two/three finger tap followed by a single tap drag, the way it works in<br>
> synaptics driver. I found that this topic has been discussed previously:<br>
> <a href="https://lists.freedesktop.org/archives/wayland-devel/2017-September/034926.html" rel="noreferrer noreferrer" target="_blank">https://lists.freedesktop.org/archives/wayland-devel/2017-September/034926.html</a><br>
> <br>
> But this was the single main on that topic in the archives.<br>
> <br>
> To Peter Hutterer, where can I find the patch being discussed in that mail?<br>
> Would it be better to start from scratch since the patch was apparantly<br>
> flawed?<br>
<br>
I've forwarded the attachments from that thread to you off-list.<br>
<br>
Basically, that patch was incomplete and didn't handle some states and<br>
transitions. It also wasn't documented clearly, in that it didn't explain<br>
what it *intended* to do. For hairy stuff like this, knowing what the<br>
intention was is more important than the code so we know what is a bug and<br>
what isn't.<br>
<br>
Note that the state machine is the main source of information here, the<br>
actual tapping code is just a bunch of switch statements based on the<br>
state.<br>
<br>
Cheers,<br>
   Peter<br>
</blockquote></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="m_9123952000100661070gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Best Regards<br>Sagar Tewari<br></div></div></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Best Regards<br>Sagar Tewari<br></div></div></div>