dev log : 루비 이야기( The Fable Of Ruby )
Tuesday, March 22, 2016
[20160322] cocos2d-x iOS multi touch
cocos2d-x 기본 설정에서는 iOS를 사용하는 기기에서 multi touch 가 작동하지 않습니다.
작동시키는 방법은 아래와 같습니다.
project folder 에 있는 각 platform 별 folder 중에 iOS 에 들어가보면 AppController.mm 이라는 파일이 있습니다.
아래 이미지의 붉은색 네모박스 안의 코드의 마지막이 본래는 NO 로 설정되어 있습니다.
YES로 바꾸어 주시면 됩니다.
코드로는 아래와 같습니다.
[eaglView
setMultipleTouchEnabled
:
YES
];
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment