Re: [fltk.coredev] Gesture progress for 1.4?

GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.coredev  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: Gesture progress for 1.4? Rob McDonald 10:13 Oct 12 top right image
  Albrecht,

You've made great progress -- sorry I haven't been able to keep up.

I attempted to add a gesture responsive drawing to your test program -- but haven't quite gotten it working.  I don't normally work with FLTK on this level, so I'm probably doing something trivial wrong.

You should be able to see what I am trying to accomplish very quickly and hopefully find my error.

https://github.com/ramcdona/fltk/tree/MacOS_Gestures

Rob


On Tuesday, October 12, 2021 at 6:07:19 AM UTC-7 Albrecht Schlosser wrote:
On 10/12/21 12:57 AM Albrecht Schlosser wrote:
I wrote a small demo program (test/gestures.cxx). We can certainly improve it, but it works as expected (by me) on macOS with my latest changes in my private fork:

https://github.com/Albrecht-S/fltk/commits/MacOS_Gestures

You can either use CMake or fltk-config to build the demo program (Makefiles not updated).

Changes: positive angles in FL_ROTATE_GESTURE are now clockwise.

FL_ZOOM_GESTURE is in this test version not compatible with the 1.3 version. This is intentional and will be fixed in a later version.

The next iteration has been pushed to my branch (link above). I added another dial widget to the demo program and updated the handling (dispatching) of the new gesture events so they can be handled by the widget below the mouse like FL_MOUSEWHEEL events.

For those wanting to test: this is all only for macOS but I'll work on the Windows implementation soon (may take two days or so, don't hold your breath).


Have fun! Feedback would be appreciated.

--
You received this message because you are subscribed to the Google Groups "fltk.coredev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkcoredev+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkcoredev/770821f4-bc01-45db-88a7-c5589264ace0n%40googlegroups.com.
Direct Link to Message ]
 
bottom left image   bottom right image
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2021 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.