{"id":25666092,"url":"https://github.com/functionally/vrpn","last_synced_at":"2025-06-16T11:06:28.813Z","repository":{"id":184737801,"uuid":"564172887","full_name":"functionally/vrpn","owner":"functionally","description":null,"archived":false,"fork":false,"pushed_at":"2022-11-10T06:53:46.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-24T08:18:13.197Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Haskell","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/functionally.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,"governance":null}},"created_at":"2022-11-10T06:24:32.000Z","updated_at":"2022-11-10T17:57:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"cd080a99-55e1-4250-b2a0-88c668fcd143","html_url":"https://github.com/functionally/vrpn","commit_stats":null,"previous_names":["functionally/vrpn"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/functionally/vrpn","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/functionally%2Fvrpn","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/functionally%2Fvrpn/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/functionally%2Fvrpn/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/functionally%2Fvrpn/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/functionally","download_url":"https://codeload.github.com/functionally/vrpn/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/functionally%2Fvrpn/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260148294,"owners_count":22965910,"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":"2025-02-24T08:18:13.919Z","updated_at":"2025-06-16T11:06:28.793Z","avatar_url":"https://github.com/functionally.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"Bindings for VRPN\n=================\n\nThis package contains bindings to VRPN, \u003c\u003chttps://github.com/vrpn/vrpn/wiki\u003e\u003e and is loosely modeled on the code in \u003c\u003chttps://github.com/vrpn/vrpn/blob/master/client_src/vrpn_print_devices.C\u003e\u003e.  This has been tested using VRPN 07.30 on Linux.  It requires the VRPN C++ header files.\n\nPlease report issues at \u003c\u003chttps://bwbush.atlassian.net/projects/HVRPN/issues/\u003e\u003e.\n\n\nSkeletal example illustrating the use of VRPN bindings\n------------------------------------------------------\n\n```haskell\ndata ButtonType = LeftButton | RightButton\n  deriving (Enum, Eq, Show)\n\nmain :: IO ()\nmain =\n  do\n    putStrLn \"Press the left button to exit.\"\n    done \u003c- newEmptyMVar\n    let\n      -- A remote button that signals completion when the left button is released.\n      button :: Device Int ButtonType Double\n      button =\n        Button \"spacenav0@localhost\"\n          $ Just\n          $ \\time button state -\u003e\n            do\n              print (time, button, state)\n              if button == LeftButton \u0026\u0026 not state\n                then void $ tryPutMVar done ()\n                else return ()\n      -- An analog device.\n      analog :: Device Int Int Int Double\n      analog = Analog \"spacenav0@localhost\"\n        $ Just\n        $ curry print\n    -- Open the remote devices.\n    devices \u003c- sequence [openDevice button, openDevice analog]\n    -- Loop until a signal to complete is received.\n    mainLoops (not \u003c$\u003e isEmptyMVar done) 10 devices\n    -- Close the remote devices.\n    mapM_ closeDevice devices\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffunctionally%2Fvrpn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffunctionally%2Fvrpn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffunctionally%2Fvrpn/lists"}