Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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
2
Question by AndrewR · Sep 16, 2010 at 03:40 PM · windowsmultitouch

Windows 7 Touch and Unity3d Fullscreen problem

Hello,

I have a question about handling Windows messages.

In particular I need to handle WM_TOUCH messages on Windows 7 from within Unity (see note on TUIO later).

In a Windows forms application, for instance, I would override WndProc and handle the message there.

In a Win32 (e.g. directx) application, I would implement a Message handler and use PeekMessage to get each message - farming off WM_TOUCH to a specific method to handle the decoding.

However (I believe) neither option is available to me in Unity3d since this stuff is, rightly, hidden away from developers.

So what I have done so far to try to get this working is to implement a message snooper method in an external DLL, which gets called regularly (e.g. in Update()). This peeks windows messages from the Hwnd of the Unity game window.

I can successfully trap WM_TOUCH messages in this way, and am farming them off to my decode method. Now here's the problem - the LPARAM is an invalid handle for these messages. I believe this is because the Unity message loop has already processed them with DispatchMessage. (see link text).

Therefore this approach has come to a dead end.

What I really want to be able to do is write some code in the Unity message loops to handle my WM_TOUCH messages.

Does anyone have any suggestions on how I can get this to work, or if there'll be anything in Unity 3 that will help me?

NB: I would maybe like to use TUIO, but I'm yet to find a TUIO source for Windows7 multitouch that will work in full screen mode with no user configuration. I've tried W2TUIO but am not having much luck with it.

Any information/help will be gratefully received.

Thanks, Andrew

Comment
Add comment
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

4 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by Peter 7 · Sep 28, 2010 at 07:15 AM

try this: http://vimeo.com/groups/11111/videos/8570708

Comment
Add comment · Show 1 · 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 AndrewR · Sep 29, 2010 at 08:36 AM 0
Share

Thanks for the link I have watched the video, however note my NB: I would maybe like to use TUIO, but I'm yet to find a TUIO source for Windows7 mul$$anonymous$$ch that will work in full screen mode with no user configuration. I've tried W2TUIO but am not having much luck with it.

Basically can anyone suggest a Windows 7 mul$$anonymous$$ch TUIO source? If not then I cannot use the approach outlined in the linked video.

Thanks, Andrew

avatar image
1

Answer by Virtualware · Sep 27, 2012 at 07:21 AM

If you are still interested in multitouch in Windows 7, we have released a native solution, which does not requires TUIO or any other external program. http://forum.unity3d.com/threads/152685-RELEASED-Windows-7-multitouch

Comment
Add comment · 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
0

Answer by Wolfram · May 24, 2011 at 11:45 PM

For reference, I'll answer to this rather old question:

There has been a new touch bridge for Windows7->TUIO touches out there since end of last year, Touch2Tuio. It works flawlessly, without any overlay windows, and especially if the Unity app is running in fullscreen mode).

We're using uniTUIO and have had very good results with this bridge. All you need is a little wrapper script that automatically starts Touch2Tuio after your application launches.

Comment
Add comment · Show 2 · 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 TexeL · Apr 28, 2012 at 01:25 PM 0
Share

Hi Wolfram $$anonymous$$resse, could you share your wrapper script ? here is $$anonymous$$e :) http://pastebin.com/Jzerf2Hi

avatar image Wolfram · May 03, 2012 at 09:46 AM 0
Share

We're using Windows system calls: http://pastebin.com/NGtU$$anonymous$$pYy Note you'll need to replace the Arguments string with your project name. Also, Touch2Tuio comes in 32bit and 64 bit versions, so make sure you use the one matching your build.

avatar image
0

Answer by SpielwerkZ · Oct 17, 2011 at 03:09 PM

Reading the various threads on the subject of multi-touch and Windows7, what are the chances of Unity3 natively supporting Windows7 multi-touch messages?

The structure is already there for the sake of smart phone applications with the Input.touches array, etc... why can't Windows7 natively do this going forward rather than having to use a kludge like TUIO?

Comment
Add comment · 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

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

3 People are following this question.

avatar image avatar image avatar image

Related Questions

Need help for my plugin to unity And multi-touch on PC!! 2 Answers

Windows 10 multitouch test in editor 0 Answers

Windows 7 Multitouch limits 0 Answers

multitouch on desktop possible 1 Answer

Does unity now support multitouch directly in windows? 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