Any suggestions on how to control the sensitivity of a toggle like this...
Current thinking is to only flip for +10 or -10 (tweakable) so that the mouse needs to be down for a reasonable amount of time, rather than oscillating between on/off every input cycle.
I could poll the input cycle less frequently of course, but I am using MouseX and MouseY to select pickable objects.
I could also implement a decaying 'blocked' timer every time there is a flip - it just seems a bit sledgehammer-like.
So how do other people deal with this ?
If MouseDown(1) Then gridvisible = 1 - gridvisible If gridvisible Then ShowEntity gridmesh Else HideEntity gridmesh EndIf EndIf
Current thinking is to only flip for +10 or -10 (tweakable) so that the mouse needs to be down for a reasonable amount of time, rather than oscillating between on/off every input cycle.
I could poll the input cycle less frequently of course, but I am using MouseX and MouseY to select pickable objects.
I could also implement a decaying 'blocked' timer every time there is a flip - it just seems a bit sledgehammer-like.
So how do other people deal with this ?