Stefan Seefeld <[EMAIL PROTECTED]> wrote:
> Andreas Beck wrote:
> 
> > /* 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);

> nice. But how do I know all available origins ?
> Hmm, could it be that the 'number' is a simple index (from 0 upwards) which
> I use to get device indo as well as the origin ? 

Yes.

> How do I know at what number to stop ?

By the return code. It returns 0 on success. Everything else indicates 
failure.

> Sorry for these very basic questions. But I didn't find a single 
> mention of these methods in the docs. *sigh*

*sigh* as well. Yeah - could someone of our doc gurus please make Manpages
for them and add them to the sgml-docs ? I'll glady answer all questions
about the parameters, Return-codes etc. that you can't figure out yourself.

> ok, as I illustrated in another reply, I don't think I can do that 
> since our event type system is pretty different from the one in GII/GGI. 

You may want to look at LibGIC anyway, though, as it maps LibGII input to
application events which can be teached in. Maybe you can reuse some of the
ideas there.

CU, Andy

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

Reply via email to