herbss
Topic Author
Posts: 5
Joined: 07 Oct 2014, 22:00

Manipulation events not working on Windows 8

07 Oct 2014, 22:05

Hi,

I am having trouble getting the ManipulationStarting/InertiaStarting/Delta events to fire on Windows. The sample I am running is the Touch sample included with the trial. When I deploy it onto Android it works.

How do I get manipulation events working on Windows 8?

Thanks
 
User avatar
jsantos
Site Admin
Posts: 4181
Joined: 20 Jan 2012, 17:18
Contact:

Re: Manipulation events not working on Windows 8

08 Oct 2014, 00:45

Do you mean Windows 8 Touch Events?

It seems that Unity does not support Windows 8 multi touch events. So you need to do it manually using a native plugin (we can provide you with source, because we support Windows 8 touch events in our native SDK) or use a 3rd party solution and inject the events to noesisGUI.

http://forum.unity3d.com/threads/window ... em.197373/

Another option is that we convert ignored mouse events to touch ones as we are doing from touch to mouse events. In this case, you won't only able to emulate one finger. This will probably fix the Touch Sample although the solution is quite limited because it won't work for more complex controls that are already handling mouse events.
 
User avatar
jsantos
Site Admin
Posts: 4181
Joined: 20 Jan 2012, 17:18
Contact:

Re: Manipulation events not working on Windows 8

08 Oct 2014, 01:01

Although the right solution, as pointed out several times here, could be unifying mouse and touch events in NoesisGUI. We have an internal ticket for that, although for now we haven't found a satisfying solution.
 
herbss
Topic Author
Posts: 5
Joined: 07 Oct 2014, 22:00

Re: Manipulation events not working on Windows 8

08 Oct 2014, 01:05

Do you mean Windows 8 Touch Events?

It seems that Unity does not support Windows 8 multi touch events. So you need to do it manually using a native plugin (we can provide you with source, because we support Windows 8 touch events in our native SDK) or use a 3rd party solution and inject the events to noesisGUI.

http://forum.unity3d.com/threads/window ... em.197373/

Another option is that we convert ignored mouse events to touch ones as we are doing from touch to mouse events. In this case, you won't only able to emulate one finger. This will probably fix the Touch Sample although the solution is quite limited because it won't work for more complex controls that are already handling mouse events.
What would be the beset way to inject events? In my project I am currently using TouchScript and am able to capture touch on Windows 8. I could write something to take inputs obtained from TouchScript and feed it into Noesis. I looked inside NoesisUIRenderer and that area looks promising, however I am not sure if that is the correct place to inject inputs in order for Noesis to start generating manipulation delta/starting.
 
User avatar
jsantos
Site Admin
Posts: 4181
Joined: 20 Jan 2012, 17:18
Contact:

Re: Manipulation events not working on Windows 8

08 Oct 2014, 02:42

The correct way to inject is shown here:

http://www.gallantgames.com/pages/incontrol-noesis-gui

Who is online

Users browsing this forum: Ahrefs [Bot] and 0 guests