MrFX Wrote:01071400220000:KEY_UP
01071400230000:KEY_DOWN
01071400220001:CORE::LAST_KEY #(up-repetition)
01071400230001:CORE::LAST_KEY #(down-repetition)
I do not know whether it is working in the key mapping, or just in the mouse mapping, but try to use
XXs in the repetition line. Like this:
' Wrote:01071400220000:KEY_UP
01071400230000:KEY_DOWN
01071400XX0001:CORE::LAST_KEY
BTW this is the diff of the final version I made for my remote:
(Well, it is for the last version before the current, as I see...)
Code:
217d216
< int counter = 0;
237c236,242
< // else
---
> if(last_key_down!=0)
> {
> send_key_up_event(uinput_fd,last_key_down);
> last_key_code = last_key_down;
> last_key_down = 0;
> }
> else
248d252
< counter = 0;
263c267
< if(!last_key_code || !counter++)
---
> if(!last_key_code)
274,279d277
< if(last_key_down!=0)
< {
< send_key_up_event(uinput_fd,last_key_down);
< last_key_code = last_key_down;
< last_key_down = 0;
< }
I only added a counter that gets zeroed on every key press event, and incremented by the repetition events, thus the first repetition could be skipped.