Hi Stefan,

> send a 'GII_CMDCODE_GETDEVINFO' event to 'all' and then wait and see what
> command events come back. This procedure is very asynchronous in nature,
> not only because I have to poll for the results of my query, but also
> because it doesn't appear I can ever know whether I'v got all the info I
> asked for
> Is this a deliberate choice, or would it be equally possible to make a
> synchronous call ?


Sure: 

/* Deviceinfo stuff
 */
int giiQueryDeviceInfo        (gii_input_t inp, uint32 origin, 
                                gii_cmddata_getdevinfo *info);
int giiQueryDeviceInfoByNumber(gii_input_t inp, uint32 number, 
                                uint32 *origin, gii_cmddata_getdevinfo *info);
int giiQueryValInfo           (gii_input_t inp, uint32 origin, 
                                uint32 valnumber, gii_cmddata_getvalinfo *info);

However please note, that you should be prepared to have devices dynamically
popping up or disappearing.

So when the app gets an event from an unknown source, it should not freak
out, but rather dynamically update its tables.

> is a little event mapping framework such that I can map between event
> types such that I can use my stylus as a generic mouse replacement (i.e.
> map from valuators to positions), etc.

That is what filters (for common special cases) or LibGIC (universal
including an interactive configuration mechanism) are for.

CU, Andy

-- 
= Andreas Beck                    |  Email :  <[EMAIL PROTECTED]>             =

Reply via email to