Hi I am sorry the answer took so long!
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.
Hallo
To begin with, I let some other dudes test the program and I got different
reports... :) It repeated for some, but not for all. You don't happen to be
running 4.3? That could be an explanation.
I think this has nothing to do with the version you/they are running.
Someone has set you
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,
Hello,
I'm writing a program that turns joystick button presses and axis movements
into X events via XTestFakeKeyEvent(). What I need to know is how to make
the code snippet below act exactly like if I had held the 1 key (keycode
10) for 5 seconds. Any help appreciated. And yes, the code below
4 matches
Mail list logo