{"id":18098480,"url":"https://github.com/danieloneill/mhn_hotas_uinput","last_synced_at":"2025-04-06T04:17:53.652Z","repository":{"id":259710722,"uuid":"876713096","full_name":"danieloneill/mhn_hotas_uinput","owner":"danieloneill","description":"uinput/libusb-1.0 device driver for Mitsubishi Hori/Namco Flightstick 2 HOTAS (Ace Combat 5)","archived":false,"fork":false,"pushed_at":"2024-10-27T12:37:48.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-12T10:18:49.569Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","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/danieloneill.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-10-22T12:41:26.000Z","updated_at":"2024-10-27T12:37:51.000Z","dependencies_parsed_at":"2024-10-27T14:27:48.526Z","dependency_job_id":null,"html_url":"https://github.com/danieloneill/mhn_hotas_uinput","commit_stats":null,"previous_names":["danieloneill/mhn_hotas_uinput"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danieloneill%2Fmhn_hotas_uinput","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danieloneill%2Fmhn_hotas_uinput/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danieloneill%2Fmhn_hotas_uinput/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danieloneill%2Fmhn_hotas_uinput/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danieloneill","download_url":"https://codeload.github.com/danieloneill/mhn_hotas_uinput/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247430976,"owners_count":20937876,"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-10-31T20:11:25.100Z","updated_at":"2025-04-06T04:17:53.308Z","avatar_url":"https://github.com/danieloneill.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mhn_hotas_uinput\nDevice driver for Mitsubishi Hori/Namco Flightstick 2 HOTAS (Ace Combat 5)\n\nUses uinput and libusb-1.0\n\nIt's developed/tested with Linux 6.10.12\n\nUSB ID is 06d3:0f10\n\nThis is a userspace implementation of my kernel driver at https://github.com/danieloneill/mhn_hotas\n\n## Credits\n\nUsed https://www.tamanegi.org/prog/hfsd/ as reference, and copied the data structs for control messages.\n\n## Notes\n\n* M1/M2/M3 is detected but disabled, as I can't think of a proper way to implement this that doesn't break when binding.\n* Neither dial knobs do anything. It turns out they're mouse/kbd URBs, which is a bit more work...\n* A and B pressure sensitivity isn't respected. I just trigger \"pressed\" if they're pressed enough.\n* D-PAD1 is split into 4 buttons, D-PAD3 is split into 3 buttons. D-PAD2 is split into 4 buttons.\n* HAT +PUSH button doesn't work, but that could be my flight stick? I left the button \"on\" in the driver in case it works for you.\n\nKeep in mind that for Proton/Wine games Steam likes to emulate an Xbox 360 controller and override HID input devices in the name of compatibility, which will ruin a lot of functionality in this case.\n\n## Usage\n\n```\n$ make\ncc -o hori hori.c -lusb-1.0\n\n$ sudo ./hori\nhori_init_existing: Device registered.\nMitsubishi HORI/Namco Flightstick 2 driver loaded.\nhori_poll_ir: Expected 8 bytes, received 4 bytes.\n```\n\nTest it with \"jstest\" or \"jstest-gtk\"\n\n(Don't mind if the axiseses are a bit confused in the test app, binding them in game works just fine.)\n\nIt's safe to ignore that \"Expected 8 bytes\" warning before the device settles.\n\nIf you want to be able to execute it as a regular user (such as on session startup in KDE):\n\n```\n$ sudo cp hori /usr/local/bin\n$ sudo chmod u+s /usr/local/bin/hori\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanieloneill%2Fmhn_hotas_uinput","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanieloneill%2Fmhn_hotas_uinput","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanieloneill%2Fmhn_hotas_uinput/lists"}