{"id":374,"date":"2013-03-01T22:48:59","date_gmt":"2013-03-01T13:48:59","guid":{"rendered":"http:\/\/androiphone.uvs.jp\/?p=374"},"modified":"2015-11-09T14:02:11","modified_gmt":"2015-11-09T05:02:11","slug":"andrioidandengine-%e3%83%9e%e3%83%ab%e3%83%81%e3%82%bf%e3%83%83%e3%83%97%e3%83%9e%e3%83%ab%e3%83%81%e3%82%bf%e3%83%83%e3%83%81%e3%82%92%e6%a4%9c%e5%87%ba%e3%81%99%e3%82%8b","status":"publish","type":"post","link":"https:\/\/androiphone.uvs.jp\/?p=374","title":{"rendered":"[Andrioid][AndEngine] \u30de\u30eb\u30c1\u30bf\u30c3\u30d7(\u30de\u30eb\u30c1\u30bf\u30c3\u30c1)\u3092\u691c\u51fa\u3059\u308b"},"content":{"rendered":"<p>\u30de\u30eb\u30c1\u30bf\u30c3\u30c1\u306e\u65b9\u6cd5\u306f<a href=\"http:\/\/www.amazon.co.jp\/AndEngine%E3%81%A7%E3%81%A4%E3%81%8F%E3%82%8BAndroid-2D%E3%82%B2%E3%83%BC%E3%83%A0-SMART-GAME-DEVELOPER\/dp\/4798130516\">\u4f8b\u306e\u672c<\/a>\u306b\u306f\u66f8\u3044\u3066\u306a\u3044\u306e\u3067\u3001 Google\u5148\u751f\u306b\u3044\u308d\u3044\u308d\u3001\u805e\u3044\u3066\u307f\u305f\u3002\u3059\u308b\u3068multitouchextension\u3092\u5165\u308c\u308d\u5165\u308c\u308d\u3068\u3001\u3044\u308d\u3093\u306a\u3068\u3053\u308d\u3067\u66f8\u3044\u3066\u3042\u308a\u3001Git\u304b\u3089\u5165\u308c\u3066\u307f\u305f\u3082\u306e\u306e\u3001\u30a4\u30f3\u30dd\u30fc\u30c8\u306e\u5834\u6240\u304c\u306a\u3093\u304b\u5909\u2026\u3002<\/p>\n<pre>[java]\r\nimport org.anddev.andengine.extension.input.touch.exception.MultiTouchException;\r\nimport org.anddev.andengine.input.touch.controller.BaseTouchController;\r\n[\/java]<\/pre>\n<p>\u307e\u3041\u3001\u30b5\u30f3\u30d7\u30eb\u3068\u304b\u306f<\/p>\n<pre>[java]\r\nimport org.andengine.engine.camera.Camera;\r\nimport org.andengine.engine.options.EngineOptions;\r\n[\/java]<\/pre>\n<p>\u3067\u3001org.anddev\u3068\u304b\u306f\u898b\u5f53\u305f\u3089\u306a\u3044\u3002\u5f53\u7136\u3001\u5165\u308c\u3066\u3082\u30d3\u30eb\u30c8\u30a8\u30e9\u30fc\u3067\u30c0\u30e1\u3002\u3042\u308c\u3084\u3053\u308c\u3084\u8abf\u3079\u3066\u3044\u305f\u3089<\/p>\n<p><a href=\"http:\/\/stackoverflow.com\/questions\/14464055\/andengine-multitouch-extension\">http:\/\/stackoverflow.com\/questions\/14464055\/andengine-multitouch-extension<\/a><\/p>\n<p>\u306a\u30fb\u30fb\u30fb\u306a\u3063\u3060\u3063\u3066\u30fc\u3002\u666e\u901a\u306bGLES2\u3067\u306f\u6a19\u6e96\u306b\u306a\u3063\u305f\u3089\u3057\u3044\u3002\u30b5\u30f3\u30d7\u30eb\u3067\u3057\u305f\u306e\u3088\u3046\u306b\u66f8\u304d\u304f\u308f\u3048\u3066\u3001\u30bf\u30c3\u30d7\u6642\u306b\u5ea7\u6a19\u3092\u30ed\u30b0\u306b\u5410\u304d\u51fa\u3057\u305f\u3089 \u305f\u3057\u304b\u306b\u30de\u30eb\u30c1\u30bf\u30c3\u30d7\u3067\u304d\u3066\u3044\u305f\u3002<\/p>\n<pre>[java highlight=\"7,9\"]\r\n\tpublic EngineOptions onCreateEngineOptions() {\r\n\t\tfinal Camera camera = new Camera(0, 0, CAMERA_WIDTH, CAMERA_HEIGHT);\r\n\t\tEngineOptions eo = new EngineOptions(true,\r\n\t\t\t\tScreenOrientation.PORTRAIT_FIXED, new RatioResolutionPolicy(\r\n\t\t\t\t\t\tCAMERA_WIDTH, CAMERA_HEIGHT), camera);\r\n\t\teo.getAudioOptions().setNeedsSound(true);\r\n\t\teo.getTouchOptions().setNeedsMultiTouch(true);\r\n\r\n        if(MultiTouch.isSupported(this)) {\r\n            if(MultiTouch.isSupportedDistinct(this)) {\r\n                    \/\/Multitouch supported, no problem\r\n            \t\tSystem.out.println(&quot;multitouch YES&quot;);\r\n            } else {\r\n                    \/\/Multitouch not working properly (Nexus One, ...)\r\n            \t\tSystem.out.println(&quot;multitouch no&quot;);\r\n            }\r\n    } else {\r\n            \/\/No multitouch\r\n\t\tSystem.out.println(&quot;multitouch no&quot;);\r\n    }\r\n\t\t\r\n\t\treturn eo;\r\n\t}\r\n[\/java]<\/pre>\n<p>\u3053\u308c\u304b\u3089\u3001\u8abf\u3079\u7269\u3092\u3059\u308b\u3068\u304d\u306b\u306fGLES2\u3092\u5165\u308c\u3066\u8abf\u3079\u305f\u307b\u3046\u304c\u3044\u3044\u306d\u3002\u307e\u305f\u3082\u3084\u30d0\u30fc\u30b8\u30e7\u30f3\u306e\u58c1\u3067\u3068\u3044\u3046\u304b\u3001 \u82f1\u8a9e\u7406\u89e3\u529b\u4e0d\u8db3\u304b\u30fb\u30fb\u30fb\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30de\u30eb\u30c1\u30bf\u30c3\u30c1\u306e\u65b9\u6cd5\u306f\u4f8b\u306e\u672c\u306b\u306f\u66f8\u3044\u3066\u306a\u3044\u306e\u3067\u3001 Google\u5148\u751f\u306b\u3044\u308d\u3044\u308d\u3001\u805e\u3044\u3066\u307f\u305f\u3002\u3059\u308b\u3068multitouchextension\u3092\u5165\u308c\u308d\u5165\u308c\u308d\u3068\u3001\u3044\u308d\u3093\u306a\u3068\u3053\u308d\u3067\u66f8\u3044\u3066\u3042\u308a\u3001Git\u304b\u3089\u5165\u308c\u3066\u307f\u305f\u3082\u306e\u306e\u3001\u30a4\u30f3\u30dd\u30fc\u30c8\u306e\u5834 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_locale":"","_original_post":"","footnotes":""},"categories":[13,5,6],"tags":[],"class_list":["post-374","post","type-post","status-publish","format-standard","hentry","category-andengine","category-android","category-6","ja"],"_links":{"self":[{"href":"https:\/\/androiphone.uvs.jp\/index.php?rest_route=\/wp\/v2\/posts\/374","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/androiphone.uvs.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/androiphone.uvs.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/androiphone.uvs.jp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/androiphone.uvs.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=374"}],"version-history":[{"count":8,"href":"https:\/\/androiphone.uvs.jp\/index.php?rest_route=\/wp\/v2\/posts\/374\/revisions"}],"predecessor-version":[{"id":921,"href":"https:\/\/androiphone.uvs.jp\/index.php?rest_route=\/wp\/v2\/posts\/374\/revisions\/921"}],"wp:attachment":[{"href":"https:\/\/androiphone.uvs.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=374"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/androiphone.uvs.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=374"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/androiphone.uvs.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=374"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}