[prev in list] [next in list] [prev in thread] [next in thread]
List: freedesktop-xorg
Subject: Re: XTestFakeKeyEvent and direction arrows
From: Giuseppe Penone <giuspen () gmail ! com>
Date: 2012-05-29 16:57:15
Message-ID: CAArGEPH+YsMA7+trdiOBm98UMvbctmnnJq1fphcd+RSHT9LYbw () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
I'm sorry I didn't understand that you tested the direction arrows in your
code too, I modified just a little
your main (modified code pasted below) and it works like a charm, now I'll
work out where the problem is in my
calls.
Many many thanks,
Giuseppe.
switch(i%4)
{
case 0:
sendKey(disp, XK_Right, 0);
printf("pressing right\n");
break;
case 1:
sendKey(disp, XK_Left, 0);
printf("pressing left\n");
break;
case 2:
sendKey(disp, XK_Down, 0);
printf("pressing down\n");
break;
case 3:
sendKey(disp, XK_Up, 0);
printf("pressing up\n");
break;
default:
printf("what's wrong with me!\n");
}
On Tue, May 29, 2012 at 6:25 PM, Onur K=FC=E7=FCk <onur@delipenguen.net> wr=
ote:
>
> On Tue, 29 May 2012 00:19:10 +0200
> Giuseppe Penone <giuspen@gmail.com> wrote:
>
> > Hi and thanks for your example code.
> > Using your function "sendKey" unfortunately all keysyms work but the
> > direction arrows,
> > result that I already obtained.
> > The direction arrows still produce the effect:
> > - up and down cause no visible effect
> > - right and left cause right+down and left+up.
>
> Have you tried compiling and running that code by itself ? It is
> working here for arrow keys (up, down..) so depending on if it works by
> itself could give a hint where the problem might be.
>
>
> --
> Onur K=FC=E7=FCk Knowledge speaks,
> <onur.--.-.delipenguen.net> but wisdom listens
>
> _______________________________________________
> xorg@lists.x.org: X.Org support
> Archives: http://lists.freedesktop.org/archives/xorg
> Info: http://lists.x.org/mailman/listinfo/xorg
> Your subscription address: giuspen@gmail.com
>
[Attachment #5 (text/html)]
I'm sorry I didn't understand that you tested the direction arrows in your \
code too, I modified just a little<br>your main (modified code pasted below) and it \
works like a charm, now I'll work out where the problem is in my<br> \
calls.<br>Many many thanks,<br>Giuseppe.<br><br> switch(i%4)<br> {<br> \
case 0:<br> sendKey(disp, XK_Right, 0);<br> \
printf("pressing right\n");<br> break;<br> case 1:<br> \
sendKey(disp, XK_Left, 0);<br> printf("pressing \
left\n");<br> break;<br> case 2:<br> \
sendKey(disp, XK_Down, 0);<br> printf("pressing \
down\n");<br> break;<br> case 3:<br> sendKey(disp, \
XK_Up, 0);<br> printf("pressing up\n");<br> \
break;<br> default:<br> printf("what's wrong with \
me!\n");<br> }<br><br><br><br><div class="gmail_quote">On Tue, May 29, 2012 at \
6:25 PM, Onur Küçük <span dir="ltr"><<a href="mailto:onur@delipenguen.net" \
target="_blank">onur@delipenguen.net</a>></span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"> <div class="im"><br>
On Tue, 29 May 2012 00:19:10 +0200<br>
Giuseppe Penone <<a href="mailto:giuspen@gmail.com">giuspen@gmail.com</a>> \
wrote:<br> <br>
> Hi and thanks for your example code.<br>
> Using your function "sendKey" unfortunately all keysyms work but \
the<br> > direction arrows,<br>
> result that I already obtained.<br>
> The direction arrows still produce the effect:<br>
> - up and down cause no visible effect<br>
> - right and left cause right+down and left+up.<br>
<br>
</div> Have you tried compiling and running that code by itself ? It is<br>
working here for arrow keys (up, down..) so depending on if it works by<br>
itself could give a hint where the problem might be.<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
--<br>
Onur Küçük Knowledge speaks,<br>
<onur.--.-.<a href="http://delipenguen.net" \
target="_blank">delipenguen.net</a>> but wisdom listens<br> \
<br> _______________________________________________<br>
<a href="mailto:xorg@lists.x.org">xorg@lists.x.org</a>: X.Org support<br>
Archives: <a href="http://lists.freedesktop.org/archives/xorg" \
target="_blank">http://lists.freedesktop.org/archives/xorg</a><br>
Info: <a href="http://lists.x.org/mailman/listinfo/xorg" \
target="_blank">http://lists.x.org/mailman/listinfo/xorg</a><br> Your subscription \
address: <a href="mailto:giuspen@gmail.com">giuspen@gmail.com</a></div></div></blockquote></div><br>
_______________________________________________
xorg@lists.x.org: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.x.org/mailman/listinfo/xorg
Your subscription address: freedesktop-xorg@progressive-comp.com
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic