Fix touch events for iOS devices

`inputid` seems fishy here. hardcoding to 0 first as touches[unique_identifer] does returns undefined.