[Input] Fixed off-by-one error in internal max axes/buttons