GetKeyPressEventModifiers
- Updated2023-02-21
- 1 minute(s) read
GetKeyPressEventModifiers
int GetKeyPressEventModifiers (int eventData2);
Purpose
Call this function when you receive an EVENT_KEYPRESS in a panel or control callback to get the modifier keys that were pressed.
Parameters
Input | ||
Name | Type | Description |
eventData2 | int | The panel or control callback's eventData2 parameter. |
Return Value
Name | Type | Description |
modifiers | int | The modifier keys if the EVENT_KEYPRESS event contains any modifier keys. If the event does not contain any modifier keys, this value is 0. This function can return the following modifiers:
|
Additional Information
Library: User Interface Library
Include file: userint.h
LabWindows/CVI compatibility: LabWindows/CVI 6.0 and later
Example
Refer to userint\multikey.cws for an example of using the GetKeyPressEventModifiers function.