Keys "up" functions being called [edit: my fault
by Tim Scheiman · in Torque Game Builder · 10/12/2005 (5:52 pm) · 2 replies
After a search of the forums, I've seen a bunch of folks with this issue:
My character has WASD movement, but if you hold D, then hold W also, and finally hold A -- right when you press 'A' the function bound to 'D''s "keyup" is called. At this point, if you let go of A and S the character will be still, and this is really messing with the smooth control of the lil' guy.
So... I've seen the various solutions in the forums that use DirectInput, but is there anything I can do without using DirectInput? Is windows' limit for alpha keys really two? I guess I'm just wondering if anyone has solved this in the past in a nice cross-platform way before I go mauling up the source in my own attempt.
I can provide more of what I'm doing if it'll help (though I think this stuff is universal), and I thank anyone who has read this far. More thanks for anyone with time enough to post thoughts on the matter.
My character has WASD movement, but if you hold D, then hold W also, and finally hold A -- right when you press 'A' the function bound to 'D''s "keyup" is called. At this point, if you let go of A and S the character will be still, and this is really messing with the smooth control of the lil' guy.
So... I've seen the various solutions in the forums that use DirectInput, but is there anything I can do without using DirectInput? Is windows' limit for alpha keys really two? I guess I'm just wondering if anyone has solved this in the past in a nice cross-platform way before I go mauling up the source in my own attempt.
I can provide more of what I'm doing if it'll help (though I think this stuff is universal), and I thank anyone who has read this far. More thanks for anyone with time enough to post thoughts on the matter.
#2
on a happy note (if somewhat embarrassing)... I can get more than two. I had a logic error in my script. I doubt I'll run into the real problem (which I think involves something more like 4 or 6 keys being the limit), so... nothing to see here folks... move along.
Sorry for random noise...
10/12/2005 (6:37 pm)
Thanks for the info -- on a happy note (if somewhat embarrassing)... I can get more than two. I had a logic error in my script. I doubt I'll run into the real problem (which I think involves something more like 4 or 6 keys being the limit), so... nothing to see here folks... move along.
Sorry for random noise...
Torque 3D Owner Stephen Zepp
In other words, as far as I am aware, it's a general hardware problem, and not correctably/easily correctable with software.