![]()  | 
![]()  | 
![]()  | 
![]()  | 
![]()  | 
This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs. | 
Get a list of regions
int PhQueryRids( unsigned flags,
                 PhRid_t rid,
                 unsigned input_group,
                 unsigned type,
                 unsigned sense,
                 PhRid_t emitter,
                 const PhRect_t *rect,
                 PhRid_t rids[],
                 int num );
ph
This function builds a list of up to num regions in the rids array. The other parameters specify which regions are to be included in the list:
To determine the current input group, call PhInputGroup(), passing to it the current event, if any.
Set type to 0 (i.e. all bits off) to consider all types of regions.
Set sense to 0 (i.e. all bits off) to consider regions regardless of their sensitivity.
The number of regions found, or -1 if an error occurred.
![]()  | 
If this function returns -1, check errno. If it's ENOMSG, there are no pending Photon events; this isn't really an error. | 
Photon
| Safety: | |
|---|---|
| Interrupt handler | No | 
| Signal handler | No | 
| Thread | No | 
![]()  | 
![]()  | 
![]()  | 
![]()  |