Hi.
I've had this problem for quite a while, and I was wondering: Is there any way to get a list of all the keys that are currently being pressed inside MMF2?
Thanks.
Printable View
Hi.
I've had this problem for quite a while, and I was wondering: Is there any way to get a list of all the keys that are currently being pressed inside MMF2?
Thanks.
Hmm... yes; however depending on the keys you can generally only press 3-4 before there is map interference.
as for actually implementing it, i would use the key and a list object:
+on key is pressed
-list add 'key name'
+on key is not pressed
+only one action when event loops
-list deleteline (find string exact 'key name',flag 1)
Yeah I figured that part out already SEELE, but how do you figure out what keys that are and what keys that aren't being pressed? You can't select specific keys because it has to work on all keys on a keyboard.
You can use the KEY object and use:
* On Key number GetLastKeyVal( "Key Object" ) pressed
and
* On Key number GetLastKeyVal( "Key Object" ) released
Okay I tried that, but sometimes at random, when I press multiple keys some of them don't get deleted D:
Any ideas?
edit: here's the file http://mechaware.net/keys.mfa
yes, that is because of the problem i specified earlier...
Perhaps run tests on all the key which the list says are being pressed:
+number of lines > 0
-start loop("0"), number of lines (times)
+on loop("0")
+key is not being pressed ('get line (loopindex("0")+1')
-list deleteline (find string exact ('get line (loopindex("0")+1'),flag 1)
Yeah that would make sense. Thanks!