Refactoring of TouchCore for handling different touch event names.