Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
3
Question by $$anonymous$$ · Jun 19, 2017 at 08:46 PM · touchtouchscreenlinuxinput.touch

Linux Touchscreen Support?

I've been using Unity 5.5 to create a Linux prototype that uses a 4k touchscreen monitor. I recently upgraded to 5.6.1f and now it seems that I've lost Linux touchscreen support in my builds. I'm wondering if anyone else has encountered this issue, and if they've found a fix for it (e.g. a patched version of SDL2)?

I do see the following in the patch notes: https://unity3d.com/unity/beta/unity5.6.0b1

Linux / SteamOS: Switched window management and input handling from X11 to SDL2 on Linux / SteamOS.

FWIW: I installed the Linux Editor to create a native Linux build for my platform, and touch input still doesn't work. (The touchscreen works in all other apps, and the mouse and keyboard still work as expected.)

Comment
Add comment · Show 1
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image $$anonymous$$ · Jun 20, 2017 at 06:23 PM 0
Share

Further investigation...

Executing strace ./prototype.x86_64 2>&1 | grep -i sdl produces no output, and ldd prototype.x86_64 contains no references to SDL2:

 linux-vdso.so.1 =>  (0x00007ffff4f6c000)
 libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f2204d9c000)
 libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f2204b7f000)
 librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f2204976000)
 libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f22045f4000)
 libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f22042eb000)
 libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f22040d4000)
 libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f2203d0b000)
 /lib64/ld-linux-x86-64.so.2 (0x00005617aa376000)

So, it appears that the changelog might be a red herring.

Also, the unfiltered results from strace makes it clear that touch input isn't even being observed at all. I'll file a bug report, if one doesn't already exist.

1 Reply

· Add your reply
  • Sort: 
avatar image
1

Answer by Morseliot · Jul 12, 2017 at 09:24 AM

@calebgray11 Same problem here, lost touchscreen input on 5.6.2... Just in case, here is my thread https://forum.unity3d.com/threads/linux-build-x_86_64-touchscreen-click-doesnt-work.482843/ Builds from 5.3.5 working fine. Have you found any fix?

Comment
Add comment · Show 3 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image $$anonymous$$ · Jul 12, 2017 at 04:42 PM 0
Share

I ended up creating my own native Linux plugin using the following resources: 1. https://docs.unity3d.com/$$anonymous$$anual/NativePlugins.html 2. http://blog.codestage.ru/2013/11/18/types-conversion/ 3. https://people.freedesktop.org/~whot/patches/mul$$anonymous$$ch.c

Then I extended the StandaloneInput$$anonymous$$odule and passed the Touch event through as $$anonymous$$ouse events via Process$$anonymous$$ousePress in the Process method. Hope this helps others until the bug is fixed!

avatar image Wolfos $$anonymous$$ · Oct 27, 2017 at 12:42 PM 0
Share

It would be very helpful if you could share the source of this native plugin.

avatar image Krstn $$anonymous$$ · Feb 01, 2018 at 09:47 AM 0
Share

@calebgray11 is there any chance you could elaborate more on your plugin? Have you shared it somewhere by any chance? @Wolfos Have you made any progress on this? We have just found ourselves in the same spot and not sure if it's possible to make it work?

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

93 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Touchscreen scrolling without clicking 0 Answers

Zoom in on tapped point in 3D space 1 Answer

Build an text editor in unity 3d 0 Answers

How can I make a GUI button be touch activated? 0 Answers

Fire ball towards touch position 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges