Axiom.Platforms.OpenTK.OpenTKInputReader.IsKeyPressed C# (CSharp) Method

IsKeyPressed() public method

Checks the current keyboard state to see if the specified key is pressed.
public IsKeyPressed ( KeyCodes key ) : bool
key KeyCodes KeyCode to check.
return bool
		public override bool IsKeyPressed( KeyCodes key )
		{
			if ( keyboard == null )
				return false;
			return keyboard[ ConvertKeyEnum( key ) ] == true;
		}