key
. If key_to_char()
is called with a key that does not have a corresponding ASCII symbol, nil
is returned.
has_num(mod) mod
includes the named modifier. has_control()
, has_shift()
, and has_alt()
return true if mod
has either the left-hand version of the modifier or the right-hand version.
Because the value of a modifier may not be one of the global constants (for example, if multiple modifier keys are pressed at once), you should use these functions rather than a straight comparison to determine if a modifier is pressed. A conditional such as:
if mod == SDLM_LCONTROL then -- do something... endWill only apply if only the left control key was pressed to produce
mod
.
Topic ZippyKeysyms . { Edit | Attach | Ref-By | Printable | Diffs | r1.2 | > | r1.1 | More } |
Revision r1.2 - 28 Jan 2005 - 23:22 GMT - ElminI Parents: WebHome > MakingZippyObjects |
Copyright © 1999-2003 by the contributing authors.
All material on this collaboration platform is the property of the contributing authors. Ideas, requests, problems regarding EgoWiki? Send feedback. |