View previous topic :: View next topic |
Author |
Message |
Vijchti Member
Joined: 16 Aug 2006 Posts: 250
|
Posted: Thu Nov 09, 2006 8:49 pm Post subject: Space Bar Clone Works Too Fast |
|
|
When I'm doing things, I often stop mid-stroke to see what I'm doing. Sometimes, however, I'll be working with objects and I'll rest my thumb on the spacebar, creating dozens of copies of an object before I know it (and if it's complicated enough, it'll freeze up DeleD for quite a while).
Could you possibly change it so that the clone function only works when I realease the space bar? Even if it's only a solution for my own stupidity. _________________
"Psst, Here's a secret...Your last mortal thought will be,
'Why did I take so many days - just like today - for granted?'" |
|
Back to top |
|
|
Paul-Jan Site Admin
Joined: 08 Aug 2004 Posts: 3066 Location: Lage Zwaluwe
|
Posted: Sat Nov 11, 2006 10:22 am Post subject: |
|
|
Ok, that sounds like an awkward problem!
Not too sure about the proposed solution though, are you suggesting we bypass default Windows key repeat rate behaviour? (i.e. holding a key effective does trigger 'key ups'). I am not too enthusiastic about introducing non-standard key behaviour, let's see if we can come up with a different solution!
You 'leaning on the spacebar' doesn't seem to be a bother when working with other applications (like a Word Processor), how come? Is it because there you get immediate visual feedback there? Perhaps there is a way we can improve the visual feedback of the clone action in DeleD? |
|
Back to top |
|
|
Vijchti Member
Joined: 16 Aug 2006 Posts: 250
|
Posted: Sun Nov 12, 2006 1:18 am Post subject: |
|
|
Eh, I don't know. If anyone else reports that they have the same problem, then it might be worth the effort to change the way it works. For now we should probably just leave it the way it is. _________________
"Psst, Here's a secret...Your last mortal thought will be,
'Why did I take so many days - just like today - for granted?'" |
|
Back to top |
|
|
drarem Member
Joined: 17 Nov 2006 Posts: 2
|
Posted: Fri Nov 17, 2006 1:55 pm Post subject: |
|
|
Just make a key debounce type routine..
While the spacebar is selected, eg CLone and the spacebar is still down and no flag is set, set a flag and clone the object.
when you release the key, eg KEYUP or !SPACEBAR, then reset the flag. |
|
Back to top |
|
|
jwatte DeleD PRO user
Joined: 26 Apr 2006 Posts: 513
|
Posted: Fri Nov 17, 2006 5:55 pm Post subject: |
|
|
Key de-bounce is already done by Windows. I take it that DeleD just uses the regular Windows keyboard messages.
One solution to the problem would be if the selection is de-selected after cloning, so that repeated clone operations would fail. However, that might be annoying for many other reasons.
Another solution would be to allow arbitrary keyboard command mapping, so you can just remove clone from the space bar :-) |
|
Back to top |
|
|
drarem Member
Joined: 17 Nov 2006 Posts: 2
|
Posted: Fri Nov 17, 2006 5:58 pm Post subject: |
|
|
Negatif
Quote: |
While the spacebar is selected, eg CLone and the spacebar is still down and no flag is set, set a flag and clone the object.
when you release the key, eg KEYUP or !SPACEBAR, then reset the flag. |
|
|
Back to top |
|
|
Paul-Jan Site Admin
Joined: 08 Aug 2004 Posts: 3066 Location: Lage Zwaluwe
|
Posted: Wed Nov 22, 2006 7:48 pm Post subject: |
|
|
drarem: what you suggest is what I refered to as "bypass default Windows key repeat rate behaviour". People use OS settings for a reason. It's in general not a good idea to simply ignore those (unless you are writing a video game ).
Quote: |
Another solution would be to allow arbitrary keyboard command mapping, so you can just remove clone from the space bar |
Yeah, if this leaning-on-key issue isn't very pressing I think that would effectively solve things quite nicely... |
|
Back to top |
|
|
|