| 13 |
|
VIEW v; /* base view parameters */ |
| 14 |
|
int hres, vres; /* base view resolution */ |
| 15 |
|
int ifd; /* input file descriptor (for select) */ |
| 16 |
+ |
int inpready; /* number of unprocessed input events */ |
| 17 |
|
} odev; /* our open device */ |
| 18 |
|
|
| 19 |
|
extern int imm_mode; /* bundles are being delivered immediately */ |
| 92 |
|
dev_flush() : flush the output and prepare for select call |
| 93 |
|
|
| 94 |
|
Updates display, taking any pending action required before select(2) call. |
| 95 |
< |
Returns non-zero if there is device input available. |
| 95 |
> |
Returns non-zero if there is device input available, setting odev.inpready. |
| 96 |
|
|
| 97 |
|
|
| 98 |
|
int |
| 101 |
|
Called when odev struct file descriptor shows input is ready. |
| 102 |
|
Returns flags indicating actions to take in the control process. |
| 103 |
|
If the DC_VIEW or DC_RESIZE flag is returned, the odev |
| 104 |
< |
structure must be updated beforehand. |
| 104 |
> |
structure must be updated beforehand. No events will be |
| 105 |
> |
ready when this function returns, and odev.inpready will be 0. |
| 106 |
|
|
| 107 |
|
void |
| 108 |
|
dev_auxcom(cmd, args) : process auxiliary command |