{"action":"opened","issue":{"url":"https://api.github.com/repos/iolate/SimulateTouch/issues/16","labels_url":"https://api.github.com/repos/iolate/SimulateTouch/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/iolate/SimulateTouch/issues/16/comments","events_url":"https://api.github.com/repos/iolate/SimulateTouch/issues/16/events","html_url":"https://github.com/iolate/SimulateTouch/issues/16","id":61994865,"number":16,"title":"Capture swipe and tap coordinate?","user":{"login":"zhenghx1105","id":10265084,"avatar_url":"https://avatars.githubusercontent.com/u/10265084?v=3","gravatar_id":"","url":"https://api.github.com/users/zhenghx1105","html_url":"https://github.com/zhenghx1105","followers_url":"https://api.github.com/users/zhenghx1105/followers","following_url":"https://api.github.com/users/zhenghx1105/following{/other_user}","gists_url":"https://api.github.com/users/zhenghx1105/gists{/gist_id}","starred_url":"https://api.github.com/users/zhenghx1105/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhenghx1105/subscriptions","organizations_url":"https://api.github.com/users/zhenghx1105/orgs","repos_url":"https://api.github.com/users/zhenghx1105/repos","events_url":"https://api.github.com/users/zhenghx1105/events{/privacy}","received_events_url":"https://api.github.com/users/zhenghx1105/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-16T07:25:39Z","updated_at":"2015-03-16T07:25:39Z","closed_at":null,"body":"void handle_event (void* target, void* refcon, IOHIDServiceRef service, IOHIDEventRef event) {\r\n   if (IOHIDEventGetType(event)==kIOHIDEventTypeDigitizer){\r\n       IOHIDFloat x=IOHIDEventGetFloatValue(event, (IOHIDEventField)kIOHIDEventFieldDigitizerX);\r\n       IOHIDFloat y=IOHIDEventGetFloatValue(event, (IOHIDEventField)kIOHIDEventFieldDigitizerY);\r\n       int width = [[UIScreen mainScreen] bounds].size.width;\r\n       int height = [[UIScreen mainScreen] bounds].size.height;\r\n       NSLog(@\"click : %f, %f\", x*width, y*height) ;\r\n   }\r\n}\r\nI use this code .How can I judge subevent swipe or tap ?thank for all"}}