Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Updating my Mouse/Keyboard/Buttons/Fields routine.
#7
(01-22-2025, 11:34 AM)bplus Wrote: BTW @Pete double clicks from your demo seems like needs work.

Honestly, I don't think it should be the responsibility of a mouse checking routine to report double clicks; it should be something coded in the end program that function is included in.

Think about it for a moment:  What IS a double click??

Nothing more than two clicks done within some set interval.  If I have a slow timer, then it might be two clicks in a whole second.  click...click... double click.  If it's a fast time, you might have spam those two clicks to create a "double click" in 0.01 seconds...   One set mouse routine shouldn't set that for you; that should be in the end-program itself which tracks that time and decides how short a gap and how to handle a "double click".

I used to try and code mouse functions to report double clicks and triple clicks and hold events and drag events...  and then I decided that was just overkill.  99.99% of programs don't need all that junk.  Let those that do, code for it *specifically* inside themselves.  Mouse up/down/click.  That's enough for a good mouse function to be truly useful.  Anything else is just overkill.  Wink
Reply


Messages In This Thread
RE: Updating my mouse and keyboard routine. - by SMcNeill - 01-22-2025, 02:24 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to manage with efficacy the mouse input... TempodiBasic 9 772 11-22-2025, 05:14 PM
Last Post: TempodiBasic
  Hardware images for buttons,popups and inputboxes: an insane way? TempodiBasic 2 614 04-06-2025, 07:19 AM
Last Post: TempodiBasic
  Thinking about updating _KEYHIT in the wiki... Pete 0 504 08-17-2024, 02:12 AM
Last Post: Pete
  read 2 or more USB mice on one PC - fully working with keyboard input madscijr 2 1,114 06-16-2024, 01:48 AM
Last Post: madscijr
  Another magnification routine (UPDATED) TerryRitchie 6 1,478 04-19-2024, 06:32 PM
Last Post: TerryRitchie

Forum Jump:


Users browsing this thread: 1 Guest(s)