[prev in list] [next in list] [prev in thread] [next in thread]
List: olpc-devel
Subject: Re: Accessing PenTablet coordinates from PyGTK
From: Andres Salomon <dilinger () queued ! net>
Date: 2008-02-29 17:41:24
Message-ID: 20080229124124.4a2e2717 () ephemeral
[Download RAW message or body]
On Fri, 29 Feb 2008 12:08:41 -0500
"Patrick Dubroy" <pdubroy@gmail.com> wrote:
[...]
> I've tried setting SendCoreEvents to false, and then creating a GTK
> widget and registering for extension events. This allows to receive
> motion events from the PenTablet, but the x and y values in the event
> object are "inf" and "nan". Anybody know why this would be? Any
> suggestions?
>
Have you tried using a kernel from the master branch? In that, the PT
coordinates are ABS by default.
> Apparently there used to be a method gdk.Window.input_get_pointer that
> would allow you to query the location of the pointer for XInput
> devices. However, this method appears to be gone in the current
> version of GTK. Has it moved somewhere?
>
> Pat
> _______________________________________________
> Devel mailing list
> Devel@lists.laptop.org
> http://lists.laptop.org/listinfo/devel
_______________________________________________
Devel mailing list
Devel@lists.laptop.org
http://lists.laptop.org/listinfo/devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic