Libgdx multitouch on desktop systems
Asked Answered
M

1

9

I have a monitor with multi touch. It's possible to handle multi touch in libgdx on desktop systems(win7, osx...)?

Mussorgsky answered 21/2, 2014 at 3:54 Comment(0)
U
10

Nope.

Libgdx uses LWJGL as its desktop platform backend (*). You can see in LwjglInput.java that supportsMultitouch() returns false, and that it hardcodes pointer numbers other than 0 as returning fixed values.

I think LWJGL would have to support multi-touch before Libgdx would be likely to use it. (I'm not sure what the support for multi-touch events in LWJGL is.) If you have some other system API for getting multi-touch events, it shouldn't be too hard to get LwjglInput.java to use it.

(*) There is also a JGLFW backend, but I don't think that is for public use (and I'm not sure if it makes multi-touch input any better).

Unjaundiced answered 21/2, 2014 at 4:56 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.