Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not executing the same key twice with delay #62

Open
Rhefew opened this issue Aug 5, 2018 · 1 comment
Open

Not executing the same key twice with delay #62

Rhefew opened this issue Aug 5, 2018 · 1 comment
Labels

Comments

@Rhefew
Copy link

Rhefew commented Aug 5, 2018

Hello guys!

First of all, thanks for developing this awesome tool, I'm actively using it to play Dota2.
I'm currently facing an issue, not sure if I'm implementing it wrong or if it's just a bug.
Here's the situation>

In my mapping txt file I got this configuration

1 - key=KP_Up
2 - key=KP_Home
3 - key=KP_Left
4 - key=KP_Right
5 - key=KP_Down
6 - key=KP_Prior
7 - key=KP_Page_Up
8 - key=KP_Next
9 - key=KP_Page_Down
10 - key=KP_End
11 - key=KP_Begin
12 - key=KP_Page_Up
12 - delay=100
12 - key=KP_Page_Up

I'm using a naga 2014, the key number 12 is not working well. I expect KP_Page_Up to be pressed two times with a delay of 100, but only the first KP_Page_Up is executed, not the second one.

What I'm doing wrong?
Thanks in advance!

@RaulPPelaez
Copy link
Owner

Thank YOU!

You are not doing anything wrong, naga.cpp is (was). A change was made so the key action presses the key when you press the button and releases when you do. In a macro there is no button release so you are simulating keeping the button down, more or less.

I created a branch in which this behavior is fixed so "key" actions inside a macro are handled as a full key press+release, which is what one would expect. 8e8ad1d

Please checkout the macroFix branch and let me know if it works as intended.

@RaulPPelaez RaulPPelaez added the bug label Aug 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants