Checks if a key known by its keycode is pressed in a given keyboard snapshot. The keycode is a number given to key depending on its physical location on the keyboard.
- Parameters:
-
| key | a snapshot of the keyboard returned by bx_read_key(). |
| keycode | a keycode describing the physical location of a key. |
- Returns:
- whether the key is pressed (= 1) or released (= 0).