Benjamin Schieder

[TECH] CREATING A TOUCHSCREEN INTERFACE IN FLTK 1.1

2009 November 30

I'm developing some applications on the OpenMoko FreeRunner using the SHR distribution.
For drawing I use FLTK version 1.1.

On a touchscreen there's not much point in using a scrollbar to scroll on the visible area, so I implemented a FLTK class that inherits from Fl_Scroll and implements scrolling on an area using the mouse (or finger).

You can download the source including a simple example, I consider the code in the public domain, GPLv2 only (not later!) where void.


EOF

Category: blog

Tags: Tech OpenMoko FreeRunner SHR FLTK