Re: creating a touch gui with sdl only ?
Jared Maddox <absinthdraco <at> gmail.com>
2015-10-08 01:13:39 GMT
> Date: Wed, 30 Sep 2015 10:17:57 +0200
> From: deco33000 Jog <deco33000 <at> yandex.com>
> To: SDL Development List <sdl <at> lists.libsdl.org>
> Subject: [SDL] creating a touch gui with sdl only ?
> Message-ID: <630771443601077 <at> web23j.yandex.ru>
> Content-Type: text/plain; charset=koi8-r
> I am developping a LCD tablet (touch support).
> The goal is to personalize as much as possible the design of my windows (custom buttons style, scrolling..
and so on).
Try the SDL_WINDOW_BORDERLESS window creation flag. You'll need to
draw all widgets yourself, but if you want full-customization then you
need that anyways.
Note that the platform that your program is running on can decide to
ignore the flag, only honor it partially, etc. If you want to overcome
that, then you basically need to do your own distro/OS.
> Will the SDL enable me to do so? Is is practicable (LoC)?
Only you can decide that.
> I would not use Qt because of the licence nor gtk because the -old school- style is difficult to change to our taste.
> But furiously want to create a new desktop experience.
Start by deciding what code-wise behavior you want. If you choose
poorly, then at some point you'll need to do a lot of rewriting to get
things back to rationality.
Also, remember to support the traditional pointer inputs as well.
Apple created waves when it did touch, but it's rather clumsy, so mice
& styluses are recovering. Touch is really only good for
consumer-level interactions, not anything more demanding.