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

[Feature request] Add delay option to KMT_DRAG and KMT_STEER_WHEEL after first click on center #352

Closed
renanwp2 opened this issue Jan 29, 2021 · 9 comments

Comments

@renanwp2
Copy link

renanwp2 commented Jan 29, 2021

Some games requires some delay after clicking the first time on the screen to make the command to work, like Free Fire. A delay of 1/30 secs would be enough for sure, but I would ask, if possible, to let the user configure the delay time.

@renanwp2
Copy link
Author

renanwp2 commented Feb 2, 2021

I know that the delay is necessary because i have tested it with xbindkeys for moving the mouse and clicking on the analog stick.

@Yamakuzure
Copy link
Contributor

What delay do you mean exactly?

a. what are you doing exactly (yourself) before the delay shall be happening
b. what will you (or the game) do exactly after that delay?

If I understand this, I can identify the area in the source code where this would have to be added, and can help Barry out on this one.

@renanwp2
Copy link
Author

renanwp2 commented Feb 10, 2021

What delay do you mean exactly?

a. what are you doing exactly (yourself) before the delay shall be happening
b. what will you (or the game) do exactly after that delay?

If I understand this, I can identify the area in the source code where this would have to be added, and can help Barry out on this one.

Hi, Yamakuzure, what a great person you are! Sorry for taking too much time to answer you, I have been too busy (working full time). The delay I want works this way:

  1. Before calling the KMT_STEER_WHEEL, click on center of the analog stick and, after some time (1/30 seconds should be fine), call KMT_STEER_WHEEL as usual. I guess one should take care to not keep clicking on center, since it just clicks on center once a new key (WASD keys) is pressed;
  2. For KMT_DRAG, its almost the same. Click on center of the start position, hold on for some time (again 1/30 seconds should be fine), and then drag the finger to the end position;

If the delay time were adjustable, would be perfect. If not, tell me where to adjust it and I might try to configure it on my way. This delay is based on the FPS of the games (usually 30 FPS). I think using milliseconds units is perfect. I am asking for it being adjustable cos I'm not sure how much delay I have put on it for making Free Fire to work; I suppose 500 milliseconds, but not sure.

@Yamakuzure
Copy link
Contributor

@renanwp2 : Could you please have a look at this answer in #353 and check whether @Bren1n-SCP means (roughly) the same as you do?
#353 (comment)

Both sound quite identical for me, but if there is a difference, I'd like to know about it before I meddle with the code. 😉

@renanwp2
Copy link
Author

@renanwp2 : Could you please have a look at this answer in #353 and check whether @Bren1n-SCP means (roughly) the same as you do?
#353 (comment)

Both sound quite identical for me, but if there is a difference, I'd like to know about it before I meddle with the code. wink

Hi, again, Yamakuzure!

Yes, it looks the same issue as mine !

@renanwp2
Copy link
Author

renanwp2 commented Feb 12, 2021

@renanwp2 : Could you please have a look at this answer in #353 and check whether @Bren1n-SCP means (roughly) the same as you do?
#353 (comment)

Both sound quite identical for me, but if there is a difference, I'd like to know about it before I meddle with the code. wink

Ah, do not consider a key as new, if another one (among WASD keys) is already pressed. For example, if you are holding W and then you press D without releasing W , do not consider the D key as a new key pressed. I am not sure, but that might cause problems due to the excessive amount of clicks on center.

@lonerwolf
Copy link

同样遇到这个问题,使命召唤会突然卡住,试过TCGAMES也一样

@barry-ran
Copy link
Owner

v1.7.0 Added delay function, you can try it

@renanwp2
Copy link
Author

renanwp2 commented Sep 3, 2021

Tested. Looks fine. The files I used to test it are uploaded on my repository. To test it, just git clone my repo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants