So pretty much everything is done and working. The calibration software
works (*needs a bit more calibration however), and the driver adjusts
coordinates based on screen size/resolution. I'm quite happy with it
actually. It took a few days to learn the xf86 driver methods, but I've
reached a decent understanding of the code and the DirectFB driver
works. Before I submit the patch, I thought, I should make this thing
complete by adding the dfb_config stuff. This causes a segfault in the
following function. Which is pretty much identical to the other input
drivers so I'm at a loss. I added the D_PERROR && fflush(NULL) to see
where it happens. The test for dfb_config->gunze_device is where it is
crashing. I've modified src/misc/conf.{c,h} to include the fields,
re-compiled, all went nicely, re-installed it all etc. Removing the
if(!dfb_config->gunze_device) stuff allows the program to continue on...
It also happens in the driver_open function. So I've removed references
for now and hard coded it...
Ideas?
static int driver_get_available( void )
{
D_PERROR("DirectFB/GunzeTouch: Function: %s\n",__FUNCTION__);
fflush(NULL);
int fd;
if (!dfb_config->gunze_device){
D_PERROR("DirectFB/GunzeTouch: Missing Gunze device file using
default %s!\n",GunzeT_DEFAULT_DEVICE);
fflush(NULL);
}
/*
if (!dfb_config->gunze_device)
return 0;
*/
/* TODO gotta clean this up... seems odd to open & close it like
this... */
//fd = GunzeOpenDevice (dfb_config->gunze_device);
fd = GunzeOpenDevice(GunzeT_DEFAULT_DEVICE);
if (fd < 0)
return 0;
close(fd);
return 1;
}
--
Nathanael D. Noblet
Gnat Solutions
http://www.gnat.ca/
T 250.385.4613
C 250.893.4613
_______________________________________________
directfb-dev mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev