Tagged: Mouse Click Delay
- This topic has 8 replies, 2 voices, and was last updated 6 years, 11 months ago by UterusMaximus.
-
AuthorPosts
-
9. December 2017 at 23:55 #5498UterusMaximusParticipant
Greetings!
I am new to this MagicDosBox thingy. So far i really love it.
But i have a question.I am playing around with the controlls settings for CHASM.
I got the movement to my liking, some buttons where i like them and so on…The mouse look works also very good.
BUT:
when i click/tap to shoot, it has a slight delay.
Its not Click-Shoot
Its more like Click————-ShootIs there an option to change this kind of thing or do i have to set a widget for leftmouse?
10. December 2017 at 10:40 #5499adminKeymasterHello,
There shouldn’t be noticable delay unless you have not enabled double tap or swipe gesture. Other gestures dont enable global delay.
Mouse widget is quick and is not affected by global delay.
Try create new profile and use mouse without setup, do you feel still delay?
10. December 2017 at 18:05 #5500UterusMaximusParticipantThanks for the reply!
I have enabled double tap for right mouse button and tried to disable it. But without result.
I also tried out Doom and Blood and have the same issue…
But with a Widget for left mouse button it works perfect.Could this happen because i have Mouse set to relative and the smartphone nedds a bit to “think” if i want to move the mouse or just “click” ?
10. December 2017 at 18:48 #5501adminKeymasterHmm this is weird. Double tap surely increases global delay, it must. But with disabled dbl tap and swipes it should be ok. Can you export your game settings to mgc file and share it here? Like always in December I have deadlines in my job, but will try look at this.
10. December 2017 at 19:06 #5502UterusMaximusParticipantI hope i did it right:
https://www.dropbox.com/s/er3but5x3tftlxz/Chasm.mgc?dl=0I have set ESC, Space and Enter to invisible.
10. December 2017 at 21:42 #5503adminKeymasterThank you, right, relative mouse is delayed. I can check it, now i dont remember why it is 🙂 maybe bug, maybe it has reason, will post here answer after check
Edit: some delay is caused, because by relative mouse click(mouse down/up) is executed after you put finger off the screen. By absolute mouse is done mouse on on finger down and mouse up on finger up.
10. December 2017 at 23:40 #5504UterusMaximusParticipantAh, thats interesting. Now i understand.
Thanks, sir!11. December 2017 at 9:32 #5506adminKeymasterYes, I don’t see other delays. Here is algorithm for click by relative mouse :
if ((timeDiff > 10) && (timeDiff < 300) && (distDiffX < distanceSmall) && (distDiffY < distanceSmall)) {
doClick();
}It is checked on finger UP. Do click when :
1. if ((finger_up_time – finger_down_time) < 300ms) - you must put finger off the screen quickly, below 300ms and
2. abs(finger_downXY – finger_upXY) < 1dp - you cannot drag finger over screen, XY difference betwee finger down and up must be in distance 1dp (around 3 pixels)I am wondering why I use only 1dp, seems to me like too small distance, but probably it works fine 😀
11. December 2017 at 13:46 #5507UterusMaximusParticipantOh boy, thats some complicated stuff for me.
But still, interesting! -
AuthorPosts
- You must be logged in to reply to this topic.