<div dir="ltr">Hi Albert,<div><br><div>It is a good idea to use uinput, I've seen the API and I think it is pretty easy to deal with. </div><div><br></div><div>But one problem I think we might face, is that the permission of the "/dev/uinput" file, I've tried the libsuinput API and the file descriptor return was always -1. Until I've changed the permission with chmod to "+0666" it worked after that.</div>
<div><br></div><div>How are we going to solve that problem on the KDE users devices ? Of course we won't tell them to execute that command on the /dev/uniput file, right ?</div></div><div><br></div><div>Cheers</div></div>
<div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Jun 28, 2014 at 11:09 AM, Albert Vaca <span dir="ltr"><<a href="mailto:albertvaka@gmail.com" target="_blank">albertvaka@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello Ahmed,<div><br></div><div>Maybe you want to change and use "uinput", the linux input system, directly. With uinput you can register yourself as an input device, just like a real mouse or touchpad. This has several advantages, like that the settings in KDE that are applied to the mouse will also be applied to your input, or that you will be able to simulate smooth scroll (pixel by pixel and not line by line).<div>

<br></div><div>I haven't tried it, but I just found an example that uses uinput and simulates a scroll wheel: http://<span style="font-size:12pt;font-family:Helvetica"><a href="http://android.serverbox.ch/?p=334" target="_blank">android.serverbox.ch/?p=334</a></span></div>

<div><font face="Helvetica" size="3"><br></font></div><div><font face="Helvetica" size="3">Also there is a library to make it easy to use uinput from user space: http://</font><span style="font-size:12pt;font-family:Helvetica"><a href="http://tjjr.fi/sw/libsuinput/" target="_blank">tjjr.fi/sw/libsuinput/</a></span></div>

<div><font face="Helvetica"><font size="3"><br></font></font></div><div><font face="Helvetica"><font size="3">If you want to keep with XTest and can manage to make it work it's fine, I'm just suggesting a different approach in case XTest is not enough :)</font></font><br>

<br>Cheers!</div><div>Albert</div><div><br>El dissabte, 28 juny de 2014, Ahmed Ibrahim Khalil <<a href="mailto:ahmedibrahimkhali@gmail.com" target="_blank">ahmedibrahimkhali@gmail.com</a>> va escriure:<div><div class="h5">
<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Great Ideas Albert, I am currently working on two thumb scrolling, it is pretty easy to implement on Android and I am half way though it, but still need to figure out on how to send the scroll event using XTest</div>


<div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Jun 27, 2014 at 4:28 PM, Albert Vaca <span dir="ltr"><<a>albertvaka@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">And about the right click problem: you could add a small button to the top bar or somewhere else to do it.<div>


<br></div><div>And maybe we could have another button to open the Android keyboard and send the keystrokes to KDE.</div>

<div><br></div><div>I think this would be super useful for media centers or other setups where you don't use the keyboard and mouse often, so you don't want to have one always attached.<br></div></div><div>
<div><div class="gmail_extra">

<br><br><div class="gmail_quote">On Fri, Jun 27, 2014 at 4:28 PM, Albert Vaca <span dir="ltr"><<a>albertvaka@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div dir="ltr">It's merged! You should have received an email with the commits.<div><br></div><div>I would love that you keep contributing to KDE Connect with this or other plugins :)</div><div><br></div><div>I think we have lots of possibilities, and would be great to have you with us!</div>





</div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</blockquote></div></div></div></div>
</blockquote></div><br></div>