nanogui: tpcal and NanoX on Helio
Subject:
Re: tpcal and NanoX on Helio
From:
Robert Hartley ####@####.####
Date:
2 Feb 2001 01:19:54 -0000
Message-Id: <3A7A0BFB.D3263640@ics.com>
Hi,
It turns out that I had to select for events on the root window as well as
my other one.
(It looks like a bug in NanoX.)
Once that was done, the mouse movement events came streaming in.
Also, to get a 1:1 ratio I left the following one liner in
/etc/pointercal:
1 0 0 0 1 0 1
That seemd to fix everything for the mouse,
Ciao,
rh
Robert Hartley wrote:
> Hi,
>
> I have been doing my own version of tpcal using NanoX inside my app.
>
> my program sequence is:
> enable_pointing_coordinate_transform = 0;
> GrOpen()
> GdRestrictMouse(-big, -big, big, big);
> enable_pointing_coordinate_transform = 0;
> GrNewWindow(0,0, 1600, 1600 ....);
>
> I found that my mouse movements were stuck within the size of the
> created window, but I want to trap them even when outside the window so
> that I can do my own scaling.
>
> I cannot seem to get any events whose x or y is > 159
>
> Running tpcal gives me the following:
> 0 0 268511056 4223360 0 4803712 4194552
>
> leaving that data in /etc/pointercal does nothing for me.
>
> The mouse is trapped with or without tpcal data in a small area in the
> upper left hand corner, about 160/1024 in size of the scren.
>
> How can I tell NanoX to just give me all of the mouse movemment events
> without any processing, clipping, or scaling?
>
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
= Robert Hartley Mail: 201 Broadway =
= Central Region Systems Engineer Cambridge, MA 02139 =
= Integrated Computer Email: ####@####.#### =
= Solutions, Inc. Web Site: www.ics.com =
= Tech Support: ####@####.#### Phone: 800-800-4271 =
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Visit the MotifZone (www.motifzone.org) for info on Motif!