Question by
FoxAdventures · Dec 28, 2021 at 02:08 PM ·
androidmobiletouchtouch controlstouchscreen
Touch screen not working on Android build?
Hello. I'm building a game for Android and the touch controls dont seem to be working. I don't have an android phone so i use a virtual device using android studio. Here is a small code:
if (Mouse.current.leftButton.isPressed || Input.touchCount > 0)
{
// . . .
}
I'm using the new input system for mouse controls and the old touch controls for the mobile. Am I supposed to leave out the mouse controls? Or do the old touch controls not work anymore?
Comment
Your answer
Follow this Question
Related Questions
ScreenToWorldPoint on One Axis? 0 Answers
How to replace KeyCode.Space with a simple tap on Android? 1 Answer
Rotate object by touch using Angles? 0 Answers
When The Screen Is Touched Jump 0 Answers
touch.position values clearification 0 Answers