Added iPhone input functionality