Multitouch not working (SDL 1.3)

Hello

I really want to add multitouch support in my SDL-openGL app; so to learn
how it works, I’m trying to run the example :

http://hg.libsdl.org/SDL/file/default/test/testgesture.c
http://hg.libsdl.org/SDL/file/default/test/testgesture.c

It compiles ok, but It seems that there is no gestures recorded at all. As
far as understand, I have to type the SPACE bar to start recording
gestures, and to press the S key to record it in the ‘gestureSave’ file. But
when I type the S key after I have done several gestures on the screen, I
get the message : INFO: Wrote 0 templates and the ‘gestureSave’ file is
empty.

I have a Lenovo T410s, with a N-Trig touchscreen, and I’m running Linux
(Ubuntu 10.10). Multitouch works fine on my laptop (since with the Unity
interface in Ubuntu , or the ‘Ginn’ software, I have at least 4-fingers
multitouch input that works perfectly).

I suppose I forgot something…

Thank you

Victor–
View this message in context: http://old.nabble.com/Multitouch-not-working-(SDL-1.3)-tp31293236p31293236.html
Sent from the SDL mailing list archive at Nabble.com.

I think the multi-touch support needs to be enabled while compiling SDL -
might want to double check that.
Otherwise, I’m not sure.
-AlexOn Fri, Apr 1, 2011 at 7:59 AM, victor-victor wrote:

Hello

I really want to add multitouch support in my SDL-openGL app; so to learn
how it works, I’m trying to run the example :

http://hg.libsdl.org/SDL/file/default/test/testgesture.c
http://hg.libsdl.org/SDL/file/default/test/testgesture.c

It compiles ok, but It seems that there is no gestures recorded at all. As
far as understand, I have to type the SPACE bar to start recording
gestures, and to press the S key to record it in the ‘gestureSave’ file.
But
when I type the S key after I have done several gestures on the screen, I
get the message : INFO: Wrote 0 templates and the ‘gestureSave’ file is
empty.

I have a Lenovo T410s, with a N-Trig touchscreen, and I’m running Linux
(Ubuntu 10.10). Multitouch works fine on my laptop (since with the Unity
interface in Ubuntu , or the ‘Ginn’ software, I have at least 4-fingers
multitouch input that works perfectly).

I suppose I forgot something…

Thank you

Victor

View this message in context:
http://old.nabble.com/Multitouch-not-working-(SDL-1.3)-tp31293236p31293236.html
Sent from the SDL mailing list archive at Nabble.com.


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

Thank you for the reply Alex;

If I have to enable multitouch during compilation, please how do I do that?

Victor

Alex Barry wrote:>

I think the multi-touch support needs to be enabled while compiling SDL -
might want to double check that.
Otherwise, I’m not sure.
-Alex

On Fri, Apr 1, 2011 at 7:59 AM, victor-victor <@Victor_Henri> wrote:

Hello

I really want to add multitouch support in my SDL-openGL app; so to learn
how it works, I’m trying to run the example :

http://hg.libsdl.org/SDL/file/default/test/testgesture.c
http://hg.libsdl.org/SDL/file/default/test/testgesture.c

It compiles ok, but It seems that there is no gestures recorded at all.
As
far as understand, I have to type the SPACE bar to start recording
gestures, and to press the S key to record it in the ‘gestureSave’ file.
But
when I type the S key after I have done several gestures on the screen, I
get the message : INFO: Wrote 0 templates and the ‘gestureSave’ file is
empty.

I have a Lenovo T410s, with a N-Trig touchscreen, and I’m running Linux
(Ubuntu 10.10). Multitouch works fine on my laptop (since with the Unity
interface in Ubuntu , or the ‘Ginn’ software, I have at least 4-fingers
multitouch input that works perfectly).

I suppose I forgot something…

Thank you

Victor

View this message in context:
http://old.nabble.com/Multitouch-not-working-(SDL-1.3)-tp31293236p31293236.html
Sent from the SDL mailing list archive at Nabble.com.


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


View this message in context: http://old.nabble.com/Multitouch-not-working-(SDL-1.3)-tp31293236p31296935.html
Sent from the SDL mailing list archive at Nabble.com.

In unix-based systems, you would enable it through ./configure
–enable-input-tslib; make; make install
For windows, I’m not sure.
-AlexOn Fri, Apr 1, 2011 at 12:55 PM, victor-victor wrote:

Thank you for the reply Alex;

If I have to enable multitouch during compilation, please how do I do that?

Victor

Alex Barry wrote:

I think the multi-touch support needs to be enabled while compiling SDL -
might want to double check that.
Otherwise, I’m not sure.
-Alex

On Fri, Apr 1, 2011 at 7:59 AM, victor-victor wrote:

Hello

I really want to add multitouch support in my SDL-openGL app; so to learn
how it works, I’m trying to run the example :

?http://hg.libsdl.org/SDL/file/default/test/testgesture.c
http://hg.libsdl.org/SDL/file/default/test/testgesture.c

It compiles ok, but It seems that there is no gestures recorded at all.
As
far as ?understand, I have to type the SPACE bar to start recording
gestures, and to press the S key to record it in the ‘gestureSave’ file.
But
when I type the S key after I have done several gestures on the screen, I
get the message : INFO: Wrote 0 templates and the ‘gestureSave’ file is
empty.

I have a Lenovo T410s, with a N-Trig touchscreen, and I’m running Linux
(Ubuntu 10.10). Multitouch works fine on my laptop (since with the Unity
interface in Ubuntu , or the ‘Ginn’ software, I have at least 4-fingers
multitouch input that works perfectly).

I suppose I forgot something…

Thank you

Victor

View this message in context:
http://old.nabble.com/Multitouch-not-working-(SDL-1.3)-tp31293236p31293236.html
Sent from the SDL mailing list archive at Nabble.com.


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


View this message in context: http://old.nabble.com/Multitouch-not-working-(SDL-1.3)-tp31293236p31296935.html
Sent from the SDL mailing list archive at Nabble.com.


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

Thank you; but I’ve done it and it still doesn’t work. I’ve tried the
"–enable-input-tslib" and “–enable-input-tslib=yes” options at the
"./configure" step of installation, but it is still the same.

I noticed that libts (on Ubuntu) was installed but not libts-dev, which I
installed; it changed something at the installation, but nothing changes
regarding the testgesture preformance…

Is there something else I should check or think about?

Victor

Alex Barry wrote:>

In unix-based systems, you would enable it through ./configure
–enable-input-tslib; make; make install
For windows, I’m not sure.
-Alex

On Fri, Apr 1, 2011 at 12:55 PM, victor-victor <@Victor_Henri> wrote:

Thank you for the reply Alex;

If I have to enable multitouch during compilation, please how do I do
that?

Victor

Alex Barry wrote:

I think the multi-touch support needs to be enabled while compiling SDL

might want to double check that.
Otherwise, I’m not sure.
-Alex

On Fri, Apr 1, 2011 at 7:59 AM, victor-victor <@Victor_Henri> wrote:

Hello

I really want to add multitouch support in my SDL-openGL app; so to
learn

how it works, I’m trying to run the example :

?http://hg.libsdl.org/SDL/file/default/test/testgesture.c
http://hg.libsdl.org/SDL/file/default/test/testgesture.c

It compiles ok, but It seems that there is no gestures recorded at
all.

As
far as ?understand, I have to type the SPACE bar to start recording
gestures, and to press the S key to record it in the 'gestureSave’
file.

But
when I type the S key after I have done several gestures on the
screen, I

get the message : INFO: Wrote 0 templates and the ‘gestureSave’ file
is

empty.

I have a Lenovo T410s, with a N-Trig touchscreen, and I’m running
Linux

(Ubuntu 10.10). Multitouch works fine on my laptop (since with the
Unity

interface in Ubuntu , or the ‘Ginn’ software, I have at least
4-fingers

multitouch input that works perfectly).

I suppose I forgot something…

Thank you

Victor

View this message in context:

http://old.nabble.com/Multitouch-not-working-(SDL-1.3)-tp31293236p31293236.html

Sent from the SDL mailing list archive at Nabble.com.


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


View this message in context:
http://old.nabble.com/Multitouch-not-working-(SDL-1.3)-tp31293236p31296935.html
Sent from the SDL mailing list archive at Nabble.com.


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


View this message in context: http://old.nabble.com/Multitouch-not-working-(SDL-1.3)-tp31293236p31298140.html
Sent from the SDL mailing list archive at Nabble.com.

Please does anyone has a suggestion on how to have the touchscreen input
working in SDL 1.3? My first goal is to have the ‘testgestures.c’ (from SDL
1.3) working… and it doesn’t…

My touchscreen works perfectly natively on my Ubuntu 10.10 (up to 5 fingers
on my Lenovo T410s); on the other hand and I’ve seen in the configure file
of SDL 1.3 that the ‘–enable-input-tslib’ is yes by default; I have tslib
and tslib-dev installed on my system from the official Ubuntu repositories);
there must be a missing step, I guess

Controlling by touch is such a great feature!
Thank you

Victor

victor-victor wrote:>

Thank you; but I’ve done it and it still doesn’t work. I’ve tried the
"–enable-input-tslib" and “–enable-input-tslib=yes” options at the
"./configure" step of installation, but it is still the same.

I noticed that libts (on Ubuntu) was installed but not libts-dev, which I
installed; it changed something at the installation, but nothing changes
regarding the testgesture preformance…

Is there something else I should check or think about?

Victor

Alex Barry wrote:

In unix-based systems, you would enable it through ./configure
–enable-input-tslib; make; make install
For windows, I’m not sure.
-Alex


View this message in context: http://old.nabble.com/Multitouch-not-working-(SDL-1.3)-tp31293236p31316184.html
Sent from the SDL mailing list archive at Nabble.com.

You probably need to modify the initialization code in
src/video/x11/SDL_x11touch.c

You can find the touch code by searching in that directory for
SDL_INPUT_LINUXEV

Please let me know what you find! :)On Fri, Apr 1, 2011 at 4:59 AM, victor-victor wrote:

Hello

I really want to add multitouch support in my SDL-openGL app; so to learn
how it works, I’m trying to run the example :

http://hg.libsdl.org/SDL/file/default/test/testgesture.c
http://hg.libsdl.org/SDL/file/default/test/testgesture.c

It compiles ok, but It seems that there is no gestures recorded at all. As
far as understand, I have to type the SPACE bar to start recording
gestures, and to press the S key to record it in the ‘gestureSave’ file.
But
when I type the S key after I have done several gestures on the screen, I
get the message : INFO: Wrote 0 templates and the ‘gestureSave’ file is
empty.

I have a Lenovo T410s, with a N-Trig touchscreen, and I’m running Linux
(Ubuntu 10.10). Multitouch works fine on my laptop (since with the Unity
interface in Ubuntu , or the ‘Ginn’ software, I have at least 4-fingers
multitouch input that works perfectly).

I suppose I forgot something…

Thank you

Victor

View this message in context:
http://old.nabble.com/Multitouch-not-working-(SDL-1.3)-tp31293236p31293236.html
Sent from the SDL mailing list archive at Nabble.com.


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

Hello Sam and thank you for your answer

I’m not sure I understand what you mean and what I should modify? Do you
suggest that I modify the code myself?

In the meantime, I have found that maybe I should install the
’xserver-xorg-input-tslib’ package on my Ubuntu. I did and right afterwards,
the touchscreen was not working anymore at the system level…! I removed
the package and fortunately it works again now. So I wrote to the "tslib"
forum and I learned that in Ubuntu, ‘xserver-xorg-input-tslib’ is based on
a broken Debian version, which was miscompiled and failed to apply a patch.
Someone advised me to install the latest 0.6.6 version, but I couldn’t
succed untill now. So it seems that I’m stuck at that point now… provided
that the clue is there…

Are there other people here using a touchscreen on Ubuntu and having tslib
working?

Victor

Sam Lantinga-6 wrote:>

You probably need to modify the initialization code in
src/video/x11/SDL_x11touch.c

You can find the touch code by searching in that directory for
SDL_INPUT_LINUXEV

Please let me know what you find! :slight_smile:

On Fri, Apr 1, 2011 at 4:59 AM, victor-victor <@Victor_Henri> wrote:


View this message in context: http://old.nabble.com/Multitouch-not-working-(SDL-1.3)-tp31293236p31335867.html
Sent from the SDL mailing list archive at Nabble.com.

SDL 1.3 doesn’t use tslib, so that’s a red herring.

Yes, I was encouraging you to go and modify and debug the code to see how it
works with your device. I see a hard-coded vendor id in there that looks
like a reasonable place to start.

Cheers!On Wed, Apr 6, 2011 at 11:22 AM, victor-victor wrote:

Hello Sam and thank you for your answer

I’m not sure I understand what you mean and what I should modify? Do you
suggest that I modify the code myself?

In the meantime, I have found that maybe I should install the
’xserver-xorg-input-tslib’ package on my Ubuntu. I did and right
afterwards,
the touchscreen was not working anymore at the system level…! I removed
the package and fortunately it works again now. So I wrote to the "tslib"
forum and I learned that in Ubuntu, ‘xserver-xorg-input-tslib’ is based on
a broken Debian version, which was miscompiled and failed to apply a patch.
Someone advised me to install the latest 0.6.6 version, but I couldn’t
succed untill now. So it seems that I’m stuck at that point now… provided
that the clue is there…

Are there other people here using a touchscreen on Ubuntu and having tslib
working?

Victor

Sam Lantinga-6 wrote:

You probably need to modify the initialization code in
src/video/x11/SDL_x11touch.c

You can find the touch code by searching in that directory for
SDL_INPUT_LINUXEV

Please let me know what you find! :slight_smile:

On Fri, Apr 1, 2011 at 4:59 AM, victor-victor wrote:


View this message in context:
http://old.nabble.com/Multitouch-not-working-(SDL-1.3)-tp31293236p31335867.html
Sent from the SDL mailing list archive at Nabble.com.


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


-Sam Lantinga, Founder and CEO, Galaxy Gameworks

Hello Sam

Although I’m passionate about this and although I’m learning C and its
dedicated libraries (Gtk, SDL, openGl and gstreamer actually), informatics
is not my job; maybe this part is still a bit difficult for me, but I’m
willing to learn :slight_smile:
Using a library is something, but writing it is probably much difficult :slight_smile:

I’ll see what I can do :slight_smile:

Victor

Sam Lantinga-4 wrote:>

SDL 1.3 doesn’t use tslib, so that’s a red herring.

Yes, I was encouraging you to go and modify and debug the code to see how
it
works with your device. I see a hard-coded vendor id in there that looks
like a reasonable place to start.

Cheers!

On Wed, Apr 6, 2011 at 11:22 AM, victor-victor <@Victor_Henri> wrote:

Hello Sam and thank you for your answer

I’m not sure I understand what you mean and what I should modify? Do you
suggest that I modify the code myself?

In the meantime, I have found that maybe I should install the
’xserver-xorg-input-tslib’ package on my Ubuntu. I did and right
afterwards,
the touchscreen was not working anymore at the system level…! I
removed
the package and fortunately it works again now. So I wrote to the "tslib"
forum and I learned that in Ubuntu, ‘xserver-xorg-input-tslib’ is based
on
a broken Debian version, which was miscompiled and failed to apply a
patch.
Someone advised me to install the latest 0.6.6 version, but I couldn’t
succed untill now. So it seems that I’m stuck at that point now…
provided
that the clue is there…

Are there other people here using a touchscreen on Ubuntu and having
tslib
working?

Victor

Sam Lantinga-6 wrote:

You probably need to modify the initialization code in
src/video/x11/SDL_x11touch.c

You can find the touch code by searching in that directory for
SDL_INPUT_LINUXEV

Please let me know what you find! :slight_smile:

On Fri, Apr 1, 2011 at 4:59 AM, victor-victor <@Victor_Henri> wrote:


View this message in context:
http://old.nabble.com/Multitouch-not-working-(SDL-1.3)-tp31293236p31335867.html
Sent from the SDL mailing list archive at Nabble.com.


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


-Sam Lantinga, Founder and CEO, Galaxy Gameworks


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


View this message in context: http://old.nabble.com/Multitouch-not-working-(SDL-1.3)-tp31293236p31341065.html
Sent from the SDL mailing list archive at Nabble.com.