On Sun, 2005-11-27 at 18:14 +0200, Ivan Daniluk wrote:
> Hello Nathanael,
>  To add configurable values for your module, you'll need to work with two 
> files:
> /src/misc/conf.c
> /src/misc/conf.h
> 
> Example patch for 0.9.24 source tree is attached. It just adds new dfbconfig 
> parameter, which you can simply use in your input module.
> 
> You will also need to add options for main configure script, but I guess it's 
> better to discuss it with one of main developers.

I modified all the .in/.am so that my 0.9.22 builds the module. I have
the module essentially working with my device except the two problems I
describe below.

> 
> Also, you may find useful this post - 
> http://mail.directfb.org/pipermail/directfb-dev/2005-July/000468.html
> Patch for ELO touchscreen, attached to that post, contains example how to add 
> calibration paramaters as well.

Thanks for that part.


I have the driver sending events, however I have two problems, which I'm
hoping can be solved here.

#1) The screens 0,0 point is the top right or bottom left of the screen,
depending on how you install it. How does one go about reversing this
around to match the 0,0 at the top right like in DirectFB? I guess this
part is easy to figure out really once I have the following solved..

#2) The screen gives off an x,y where x&y can be 0-1023. Now most
screens aren't square and neither is this one, I haven't fully figured
out the calibration however. When default calibration data is used, the
number is 10bits so x = 408 = ~22000. The driver I'm pulling this
information is for XFree86/Xorg and they pass the 22000 to the X Window.
So obviously some conversion in X happens, what do I do?


-- 
Nathanael D. Noblet
Gnat Solutions
http://www.gnat.ca/
T 250.385.4613
C 250.893.4613


_______________________________________________
directfb-dev mailing list
directfb-dev@directfb.org
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev

Reply via email to