Retired Document
Important: This sample code may not represent best practices for current development. The project may use deprecated symbols and illustrate technologies and techniques that are no longer recommended.
UtilCode/IsPressed.c
#include "IsPressed.proto.h" |
Boolean IsPressed(unsigned short k, unsigned char km[16]) |
/* |
Checks if a given key is down by key Code |
*/ |
{ |
return ((km[k>>3] >> (k & 7)) & 1); |
} |
Copyright © 2003 Apple Computer, Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2003-01-14