nanogui: ts on ipaq and nxlib
Subject:
Re: [nanogui] ts on ipaq and nxlib
From:
Hinko Kocevar ####@####.####
Date:
25 Aug 2004 00:00:54 +0100
Message-Id: <412BC89F.4030100@iskramedical.si>
Greg Haerr wrote:
....
>
> nxcal -f -d does the calibration, writes the data, and sends
> it to the nano-X server using GrSetTransform(). As I suggested,
> see demos/nanox/nxcal.c for more details.
>
I was examining code all day with debugger and established that g_trans
was not set properly and all mouse movement produced (239, 319)
position. I was just about to add line or two of code to read the
calibaration data and fill the struct on server startup... Then I got
your post :)
Until now I haven't really understood how the calibaration data gets to
the nano server. It is much clearer now, thanks.
This also implies that everytime I want to use TS I have to start
programs as such:
nano-X& sleep 1& <my_prog>& nxcal
or
nano-X& sleep 1& nxcal -d nxcal.dat& <my_prog>
I think it would be nice if we could load calibaration data on startup,
eg. via command line switch and skip invocation of nxcal everytime -
it's what got me confused.
I'll evaluate my solution little more and provide the patch if you think
it could be used.
regards,
h
--
hinko <dot> kocevar <at> iskramedical <dot> si
Hinko Kocevar, developer
Iskra Medical d.o.o., Stegne 23, 1k LJ, SLO-EU
"Aì rén" | [Analects XII:22]