[maemo-developers] [maemo-developers] Sketch like pointer movement detection
From: Celso Pinto cpinto at yimports.comDate: Sat Jan 14 03:00:15 EET 2006
- Previous message: [maemo-developers] Where can I find the sources for the load-plugin?
- Next message: [maemo-developers] keyboard notes
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi everyone, I'm developing a small app just for kicks and I want to have a drawing area similar to Sketch. I've followed the GTK tutorial, the Scribble example part, on how to detect mouse movement and translate that to a drawing. The thing is that compared to Scribble, Sketch is really slick because Scribble fails a lot of movements,probably because drawing to the screen is expensive, because the pixels only get drawn on screen with big intervals. I was just wondering if it is possible to improve pointer motion by having some other masks besides GDK_POINTER_MOTION_MASK? I've removed the GDK_POINTER_MOTION_MASK_HINT but it hasn't improved the drawing. I want to improve on Scribble, so I'm already thinking about alternatives like queuing all motion events and have a separate thread doing the drawing bits if that is the only way to have slick motion detection. Any insight is really appreciated. Cheers, Celso
- Previous message: [maemo-developers] Where can I find the sources for the load-plugin?
- Next message: [maemo-developers] keyboard notes
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]