{"id":23316957,"url":"https://github.com/microdee/hid.spacemouse","last_synced_at":"2025-08-22T15:32:17.950Z","repository":{"id":57263981,"uuid":"126033093","full_name":"microdee/hid.spacemouse","owner":"microdee","description":"HID based abstraction layer for 3DConnexion space mice (no need for 3DXWare bloatware) in node.js","archived":false,"fork":false,"pushed_at":"2023-04-19T07:51:52.000Z","size":10,"stargazers_count":24,"open_issues_count":1,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-12-06T09:48:22.279Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/microdee.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-03-20T14:44:16.000Z","updated_at":"2024-06-15T07:42:51.000Z","dependencies_parsed_at":"2022-08-25T02:51:54.316Z","dependency_job_id":null,"html_url":"https://github.com/microdee/hid.spacemouse","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microdee%2Fhid.spacemouse","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microdee%2Fhid.spacemouse/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microdee%2Fhid.spacemouse/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microdee%2Fhid.spacemouse/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/microdee","download_url":"https://codeload.github.com/microdee/hid.spacemouse/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230611485,"owners_count":18253237,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-20T16:18:41.672Z","updated_at":"2024-12-20T16:18:42.467Z","avatar_url":"https://github.com/microdee.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# hid.spacemouse\nHID based abstraction layer for 3DConnexion space mice (no need for 3DXWare bloatware) in node.js\n\nThis package creates a spacemouse manager with accumulated data and an array of connected spacemice. Usage:\n\n``` js\nsm = require(\"./index.js\");\nsm.spaceMice.onData = mouse =\u003e {\n    console.clear();\n    console.log(JSON.stringify(mouse.mice[0], null, 2));\n};\n```\nspaceMice class looks like this:\n``` js\n{\n    translate: {x, y, z}, // x right, y backwards, z down [-1..1]\n    rotate: {x, y, z}, // x pitch ccv, y roll ccv, z yaw cw [-1..1]\n    buttons: [], // array of 48 possible buttons\n    devices: [], // HID device info about found spacemice\n    mice: [], // array of spaceMouse objects\n    onData: function(spacemice) {} // callback function on data received from any device, argument is this object\n}\n```\n\nspaceMice manages an array of spaceMouse devices which looks like:\n``` js\n{\n    translate: {x, y, z}, // x right, y backwards, z down [-1..1]\n    rotate: {x, y, z}, // x pitch ccv, y roll ccv, z yaw cw [-1..1]\n    buttons: [], // array of 48 possible buttons\n    onData: function(spacemouse) {} // callback function on data received from this device, argument is this object\n}\n```\nthat's it.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmicrodee%2Fhid.spacemouse","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmicrodee%2Fhid.spacemouse","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmicrodee%2Fhid.spacemouse/lists"}