## Pen for OS/2 Device Driver Reference

[prev][next][parent][TOC]

### Fake Points and Proximity Events

The pen device driver must set the LOC_FAKE bit in cntrl field of the locator event packet if the coordinates specified are not valid. The last valid coordinates must be used. The first part of a stroke would generate an enter proximity zone event by setting EV_ENTER_PROX in the devicebits field.

If the device supports proximity but the device does not generate an exit proximity zone event, the pen device driver must time out the stroke and generate an event with LOC_FAKE set using the last valid coordinates. Neither LOC_CONTACT nor LOC_PROX must be set in lev_cntrl, and EV_EXIT_PROX must be set in the cev_devicebits field.