Functions | |
void | Show_Button_Source (char *keyboard, char *button, int *status) |
void Show_Button_Source | ( | char * | keyboard, | |
char * | button, | |||
int * | status | |||
) |
Returns the keyboard-device segment and the button specification that gave rise to the current button event.
keyboard | - The segment associated with the physical keyboard device that initiated the current event. Passed by reference always. Returned to user. | |
button | - The buttonspecification that allowed the current event. Almost always the same as the return value of Show_Button() , but might also be "anything". Passed by reference always. Returned to user. | |
status | - Bit-encoded value representing the state (or the new state, if the state just changed) of the keyboard. Passed by reference always. Returned to user. |
Status is a device-dependent bit-encoded value that represents the state of the keyboard or keypad at the time of the event. Basically, it shows you what extra keys were simultaneously pressed beyond the usual "shift" and "control" keys. If the first modifier key was currently pressed, then bit zero will be on. If the second modifier key was currently pressed, then bit one will be on independently of the state of bit zero, etc.
If your programming language doesn't allow for testing bit N of integer status, an equivalent test you might use is