Quantcast
Channel: Cocos Forums - Latest topics
Viewing all articles
Browse latest Browse all 17076

Ideas for distinguishing between touch types

$
0
0

@slackmoehrle wrote:

Can anyone think of how to distinguish between touch types. I really like the Apple Pencil and I can think of some uses for it, but what if you just wanted a touch to work if you were using the Pencil?

Does anyone have any thoughts on how to distinguish events?

There is some info here but it looks like if you want this we would need to get it from Objective-C. They have a Swift example, but nothing c++ yet.

Edit: I did find this: http://techbirds.in/how-to-call-objective-c-from-c-in-cocos2d-x/ which might help gain access to the underlying UITouch event and use what it returns..

@stevetranby do you have any experience here?

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 17076

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>