OnKey_Downer!
-
read through some of the old posts but didn't find anything a one neuron coding master could actually use.
Fredo6 pointed to a thru paint animation routine to achieve a Typematic effect. i looked through the code but i realise i'm not ready for a lobotomy yet.
has no one worked this one out, can't we 'just' keep a button down and have it repeat?
Looking at Pixero's JSmover, (which is a real gem) - i was hoping to add 2 features:
- repeat on key press
- make it follow a slope if on one. (perhaps combining some sort of drop to intersection procedure)
dreamland i know, but really we have quite a few great plugins that could be 'perfected'!
-
@cadfather said:
has no one worked this one out, can't we 'just' keep a button down and have it repeat?
you can do with the arrow keys? .e.g. jf_Mover2.rb...
it also works with WASD,
but on a mac, that requires 'ApplePressAndHoldEnabled' to overide the context menu for text replacement options...knight's game works as well and uses a ray-test for face to detect terrain under foot...
so, both are doable...
john
-
thanks Driven, i know even a few camera moving scripts do it but just couldn't 'get' the code to tweak, so i thought i'd check for some kind of routine/snippet that could be integrated.
this is what i was looking at: http://sketchucation.com/forums/viewtopic.php?f=180%26amp;t=24327#p239409
-
as far as my tests go that one no longer even works on mac...
all the ones I know involve WebDialogs actively capturing the keys, otherwise you would need to disable all shortcut keys...
john
-
goodness so many scripts could do with this 'basic' functionality.
thanks for testing it - i should have done so, had only looked at the code
-
@cadfather said:
read through some of the old posts but didn't find anything a one neuron coding master could actually use.
Fredo6 pointed to a thru paint animation routine to achieve a Typematic effect. i looked through the code but i realise i'm not ready for a lobotomy yet.
has no one worked this one out, can't we 'just' keep a button down and have it repeat?
Actually, I don't use Repeat key down, but simply the animation mechanism (nextframe method). Keyboard management in the SU API is very rudimentary and repeat does not work consistently.
Fredo
-
i guess one workaround is to make a webdialog tiny enough not to intrude but able to 'catch' the keystrokes repeating...
Advertisement