Answers for "unity new input system check if mouse is pressed"

C#
1

unity knowing when 0 input is pressed

if(!Input.anyKey)
{
 Debug.Log("No input is pressed");
}
Posted by: Guest on October-31-2020
1

c# unity detect any keyboard input but not mouse input

// Detect any keyboard input but not mouse input
private void Update()
{
	if (Input.anyKeyDown && !(Input.GetMouseButtonDown(0) 
    	|| !Input.GetMouseButtonDown(1) || !Input.GetMouseButtonDown(2)))
	{
    	Debug.Log("No mouse pressed!");
	}
}
Posted by: Guest on December-06-2021

Code answers related to "unity new input system check if mouse is pressed"

C# Answers by Framework

Browse Popular Code Answers by Language