|
Post by hartnell on Apr 29, 2007 0:34:31 GMT -5
I've noticed that key.PressedAny returns the either the scancode rather than 0 or 1. Was this intended? If so, it's more natural to have key.PressedAny return 0 or 1 (or true or false) and have something like : key.GetScanCode to return the scancode.
-- hartnell
|
|
|
Post by u9 on Apr 29, 2007 3:30:35 GMT -5
Key.PressedAny seems to returns the lowest scan-code if multiple keys are pressed. So I also think this function should return true or false. But then again it is a nice way (the only way excl. docs?) to find the scan-code of a key.
|
|
|
Post by Guilect on Apr 29, 2007 17:04:25 GMT -5
When implementing that function I could hear people saying, "I know that someone pressed a key but, I want to know which one they pressed" So it returns which key is pressed. I think you can just check for a non-zero value to use in a true or false like manner.
|
|