Re: [fltk.general] Touch Screen Control of Fl_Slider Position

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

Re: Touch Screen Control of Fl_Slider Position Ian MacArthur 13:04 Oct 21 top right image
On 21 Oct 2020, at 04:39, Dave Branson wrote:
> I am trying to use a Fl_Hor_Value_Slider on a 3.5" touch screen as input to control the speed of a fan with a Raspberry Pi 4 B running Linux.  I am having success with a mouse to control the position of the slider knob, but ultimately mouse input will not be an option for the finalized use, as the Pi & touch screen will be mounted on the fan unit housing.

Are you seeing some problem when doing this, and if so, what?

I don’t have access to a touchscreen on a Pi, but my XPS-13 running Ubuntu has a touchscreen, and when I tried that the widgets (including the sliders) seemed to be responding just fine to my screen touches...

Is the screen on your Pi not responding correctly? What is happening?

Can you add a debug print to the widget handle, so we can see what events are being delivered to the widget?

FWIW, when I have used small touch screens in the past, I’ve found the calibration / alignment of the touch with the image seems to be very poor in a lot of cases, so it is probably worth checking that is well calibrated in case that is throwing the whole business off.

You received this message because you are subscribed to the Google Groups "fltk.general" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To view this discussion on the web visit
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-2020 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to ''.