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üçük <o...@delipenguen.net> wrote: > > On Tue, 29 May 2012 00:19:10 +0200 > Giuseppe Penone <gius...@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üçük 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: gius...@gmail.com >
_______________________________________________ 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: arch...@mail-archive.com