{"id":2751,"date":"2014-12-17T23:59:10","date_gmt":"2014-12-17T23:59:10","guid":{"rendered":"http:\/\/kako.com\/blog\/?p=2751"},"modified":"2014-12-25T22:42:44","modified_gmt":"2014-12-25T22:42:44","slug":"oculus-rift%e3%81%8cpc%e3%81%ab%e7%b9%8b%e3%81%8c%e3%81%a3%e3%81%a6%e3%81%84%e3%82%8b%e3%81%8b%e3%81%a9%e3%81%86%e3%81%8b%e3%81%ae%e5%88%a4%e5%ae%9a","status":"publish","type":"post","link":"http:\/\/kako.com\/blog\/?p=2751","title":{"rendered":"Oculus Rift\u304cPC\u306b\u7e4b\u304c\u3063\u3066\u3044\u308b\u304b\u3069\u3046\u304b\u306e\u5224\u5b9a"},"content":{"rendered":"<p>Ovrvision\u306e\u30c7\u30e2\u30bd\u30d5\u30c8\u306a\u3069\u304cOculus Rift\u304c\u7e4b\u304c\u3063\u3066\u306a\u3044\u72b6\u614b\u3067\u8d77\u52d5\u3059\u308b\u3068\u30af\u30e9\u30c3\u30b7\u30e5\u3059\u308b\u3088\u3046\u3060\u3002<br \/>\nOculus Rift\u304c\u7e4b\u304c\u3063\u3066\u3044\u308b\u304b\u3069\u3046\u304b\u3061\u3083\u3093\u3068\u5224\u5b9a\u3059\u308b\u306e\u3063\u3066\u96e3\u3057\u304f\u306a\u3044\u3060\u308d\u3046\u306b\u3068\u601d\u3046\u3002<\/p>\n<p>\u3068\u3044\u3046\u3053\u3068\u3067\u3001Oculus Rift\u304cPC\u306b\u7e4b\u304c\u3063\u3066\u3044\u308b\u304b\u3069\u3046\u304b\u306e\u5224\u5b9a\u3092\u5b9f\u969b\u306b\u81ea\u524d\u3067\u30bd\u30d5\u30c8\u3092\u66f8\u3044\u3066\u307f\u308b\u3002<\/p>\n<p>Oclulus Rift\u306fUSB\u306eHID\u30c7\u30d0\u30a4\u30b9\u3068\u3057\u3066\u8a8d\u8b58\u3055\u308c\u3066\u3044\u308b\u306e\u3067\u3001\u7279\u5b9a\u306eVID,PID\u306e\u30c7\u30d0\u30a4\u30b9\u306b\u5bfe\u3057\u3066Open\u3057\u3066\u307f\u3066\u3001\u5931\u6557\u3057\u305f\u3089Oculus Rift\u304c\u7e4b\u304c\u3063\u3066\u3044\u306a\u3044\u3068\u5224\u5b9a\u3059\u308c\u3070\u3044\u3044\u3060\u3051\u306a\u306e\u3067\u7c21\u5358\u3060\u3002<br \/>\nOculus Rift DK1\u306eVID 0x2833\u306ePID 0x0001\u3067\u3001DK2\u306ePID\u306f0x0021\u3060\u3063\u305f\u3002<br \/>\nUSB\u306eHID\u30c7\u30d0\u30a4\u30b9\u3078\u306e\u30a2\u30af\u30bb\u30b9\u306f\u3001\u6614\u81ea\u5206\u3067\u66f8\u3044\u305ftiny_hid_dll\u3068\u3044\u3046\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u305d\u306e\u307e\u307e\u4f7f\u3063\u305f\u3089\u7c21\u5358\u306b\u3067\u304d\u305f\u3002<br \/>\n<!--more--><\/p>\n<p>\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u306f\u3053\u3093\u306a\u611f\u3058\u3060\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n#include &lt;windows.h&gt; \r\n#include &lt;stdio.h&gt;\r\n#include &lt;stdlib.h&gt;\r\n\r\n#define FUNC __declspec(dllimport) __stdcall\r\nextern &quot;C&quot; HANDLE FUNC OpenHidHandle(unsigned short vendor_id, unsigned short product_id);\r\nextern &quot;C&quot; void FUNC ReadReport(HANDLE handle,unsigned char *InputReport,int *len);\r\nextern &quot;C&quot; void FUNC WriteReport(HANDLE handle,unsigned char *OutputReport, int *len);\r\nextern &quot;C&quot; void FUNC CloseHidHandle(HANDLE handle);\r\n\r\nHANDLE hRsDevHandle;\r\nconst USHORT VID = 0x2833; \/\/ OculusVR\r\nconst USHORT PID = 0x0001; \/\/ DK1\r\n\r\nint main( int argc, char *argv[])\r\n{ \r\n\thRsDevHandle = OpenHidHandle(VID,PID);\r\n\tif ( hRsDevHandle == INVALID_HANDLE_VALUE) {\r\n\t\tprintf(&quot;device not found.&quot;); getchar();\r\n\t\treturn 1;\r\n\t}\r\n\tCloseHidHandle( hRsDevHandle );\r\n\tprintf(&quot;Oculus Rift DK1 found.\\n&quot;); getchar();\r\n\treturn 0;\r\n} \r\n<\/pre>\n<p>Oculus Rift\u306e\u63a5\u7d9a\u78ba\u8a8d\u3060\u3051\u3067\u306a\u304f\u3001\u30b8\u30e3\u30a4\u30ed\u30bb\u30f3\u30b5\u30fc\u3068\u304b\u306e\u30c7\u30fc\u30bf\u3092\u8aad\u307f\u51fa\u3059\u306e\u3082\u3067\u304d\u308b\u304b\u306a?<br \/>\n\u305d\u308c\u3082\u305d\u306e\u3046\u3061\u8a66\u3057\u3066\u307f\u305f\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ovrvision\u306e\u30c7\u30e2\u30bd\u30d5\u30c8\u306a\u3069\u304cOculus Rift\u304c\u7e4b\u304c\u3063\u3066\u306a\u3044\u72b6\u614b\u3067\u8d77\u52d5\u3059\u308b\u3068\u30af\u30e9\u30c3\u30b7\u30e5\u3059\u308b\u3088\u3046\u3060\u3002 Oculus Rift\u304c\u7e4b\u304c\u3063\u3066\u3044\u308b\u304b\u3069\u3046\u304b\u3061\u3083\u3093\u3068\u5224\u5b9a\u3059\u308b\u306e\u3063\u3066\u96e3\u3057\u304f\u306a\u3044\u3060\u308d\u3046\u306b\u3068\u601d\u3046\u3002 \u3068\u3044\u3046\u3053\u3068\u3067\u3001 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[8,14],"tags":[],"_links":{"self":[{"href":"http:\/\/kako.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2751"}],"collection":[{"href":"http:\/\/kako.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/kako.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/kako.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/kako.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2751"}],"version-history":[{"count":4,"href":"http:\/\/kako.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2751\/revisions"}],"predecessor-version":[{"id":2880,"href":"http:\/\/kako.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2751\/revisions\/2880"}],"wp:attachment":[{"href":"http:\/\/kako.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2751"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/kako.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2751"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/kako.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2751"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}