ok, having solved the first step in the puzzle, I'm not getting
a list of devices reported. Cool.
The devinfo structure contains a 'short name' and a 'long name',
but I realize that these data are actually device driver names,
not device names. For example:

static gii_cmddata_getdevinfo devinfo =
{
  "Linux Evdev",  /* long device name */
  "edev",         /* shorthand */
  emAll,          /* can_generate */
  0,              /* num_buttons */
  0,              /* num_axes */
};

Looking at the 'evtest' program someone already posted here to 
reports events from /dev/input/event0 (aka linux event device), I
get the much more useful output:


Input driver version is 1.0.0
Input device ID: bus 0x3 vendor 0x56a product 0x21 version 0x101
Input device name: "Wacom Intuos 6x8"

Is there any way to make GII report these things ?
I mean, I can certainly replace the static string 'Linux Evdev'
in the devinfo structure by an appropriate call to ioctl, but
there are still some problems.
For one, that's only a single name, I'd like to have more info
than that, for example version and vendor strings. Also, the devinfo
uses a static array, which can quickly overflow for long names.

I guess a more flexible scheme would be a dictionary of name/value pairs,
both dynamically allocated strings. Is there any way to add that to GII ?
Or, would you mind me adding that ? If so, where ?

Regards,
                Stefan

Reply via email to