Add a method for core.input and remove deprecated