MicrosoftDocs / mixed-reality

Mixed Reality documentation
Creative Commons Attribution 4.0 International
175 stars 186 forks source link

Please detail how to handle the virtual input from the portal. #448

Open A00107408 opened 3 years ago

A00107408 commented 3 years ago

[Enter feedback here] The document does not detail how to handle virtual input from the portal. Old tutorials online used Input.GetKeyDown() but this causes an exception to be thrown.


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

pbarnettms commented 3 years ago

Also replied on Slack. The Virtual Input page in Device Portal generates keystrokes just like a physical keyboard or the on-screen keyboard. Your application will need to handle keyboard input from the system. There is nothing special about Device Portal in this case.

A00107408 commented 3 years ago

It seems I need to have the system TouchScreenKeyboard in the scene for this to work.