![]() |
![]() |
![]() |
![]() |
![]() |
This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs. |
Add a hotkey callback to an application's callback list
void PtAppAddHotkeyHandler(
unsigned key_sym_cap,
unsigned key_mods,
short flags,
void *data,
int (*event_f)(void *,PtCallbackInfo_t *));
ph
This function adds a key event handler to the application's Pt_CB_HOTKEY callback list. The application invokes the last-added handler on this list whenever a key event type that matches key_sym_cap and key_mods intersects with the application .
Note the following:
For more information, see the Manipulating Resources in Application Code chapter of the Photon Programmer's Guide.
Photon
| Safety: | |
|---|---|
| Interrupt handler | No |
| Signal handler | No |
| Thread | No |
PtAppGetResources(), PtAppGetResource(), PtAppRemoveCallback(), PtAppRemoveHotkeyHandler() PtAppSetResource(), PtAppSetResources(), PtSetArg().
"Event handlers" in the Managing Widgets in Application Code chapter of the Photon Programmer's Guide
![]() |
![]() |
![]() |
![]() |