Hi,
How can we deal with gesture on Windows Universal App? I mean touch, swipe, tilt…
Example:
- When on phone/tablet: game can play with tilt/shake or touch
- When on PC: game can play with mouse only
In the past, we define something like:
#if UNITY_WP8
#elif UNITY_WSA
#endif
But now on Universal App, we have a unique call: UNITY_WSA_10_0
You should actually just process both mouse and touch input. Remember, there are PCs with touchscreens, tablets that you can hook up a mouse to, you can even hook up a mouse to a phone nowadays. There’s also this “Continuum” feature on new Windows phones which allows you to hook up monitor to the phone and use it with mouse and keyboard as if it was a PC.
1 Like