[prev in list] [next in list] [prev in thread] [next in thread]
List: xfree86
Subject: Re: [XFree86] XTestFakeKeyEvent() and key repetition
From: Christoffer Sawicki <qerub () home ! se>
Date: 2003-11-20 19:06:19
[Download RAW message or body]
> I've just compiled your code and I get a lot "1" keys pressed dusrng 5
> seconds, so your code does the job... or do I miss something?
It generates a key press and five seconds later a key release.
Nothing more, nothing less. No repetition at all.
xev output:
--8<--
KeyPress event, serial 27, synthetic NO, window 0x2200001,
root 0x89, subw 0x2200002, time 1828774, (37,45), root:(879,585),
state 0x0, keycode 10 (keysym 0x31, 1), same_screen YES,
XLookupString gives 1 characters: "1"
KeyRelease event, serial 27, synthetic NO, window 0x2200001,
root 0x89, subw 0x2200002, time 1833774, (37,45), root:(879,585),
state 0x0, keycode 10 (keysym 0x31, 1), same_screen YES,
XLookupString gives 1 characters: "1"
--8<--
I probably need to find another function... But it's working for you?
> This is how I compiled (on GNU/Linux (Debian) + XFree86 + gcc):
> gcc testx.c -o testx -L/usr/X11R6/lib -lXtst -lX11
> ./testx
> and yes, I called your snippet of code testx.c
Yes, that's how I compile it too.
> What X server etc are you running?
XFree86 Version 4.2.1.1 (Debian 4.2.1-14 20031113215638
root@newraff.debian.org) / X Window System
(The latest in Debian Sid.)
> What is not working? Isn't the key repeated? Don't you want the key to
> repeat?
It's not being repeated at all. I want it to be repeated just like if I had
pressed the 1 button physically on my keyboard.
Thanks for your time!
*/ Christoffer Sawicki <qerub@home.se>
_______________________________________________
XFree86 mailing list
XFree86@XFree86.Org
http://XFree86.Org/mailman/listinfo/xfree86
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic