Method and apparatus for determining input