Windows 10 - Detect if currently running on Tablet or Desktop Mode

How to detect if the computer is currently on Tabler or Desktop Mode?

I need to hide the custom mouse cursor if the user change to Tablet Mode.

Is this possible?

I have another problem, Virtual Keyboard is not showing on Tablet Mode when using an Input Field. Not even calling TouchScreenKeyboard.Open(); solves the problem.

Do Unity Windows Builds (not WSA) does not support mixed devices (Notebook/Touch)?

did you ever figure this out? I have been having trouble finding the answer to this, would like to be able to have my game change the ui and controls base on windows10 tablet/desktop mode…

I’m having problem trying to use this code inside unity, is there a setup that i’m missing?

Thanks! =)

1 Like