{"id":13599762,"url":"https://github.com/speps/XInputDotNet","last_synced_at":"2025-04-10T17:32:16.509Z","repository":{"id":9337386,"uuid":"11185116","full_name":"speps/XInputDotNet","owner":"speps","description":"C# wrapper around XInput, works with any Mono or .NET application (eg. Unity3D)","archived":false,"fork":false,"pushed_at":"2020-10-07T08:48:23.000Z","size":2757,"stargazers_count":464,"open_issues_count":12,"forks_count":94,"subscribers_count":45,"default_branch":"master","last_synced_at":"2025-04-05T17:06:43.460Z","etag":null,"topics":["c-sharp","unity3d","xbox-controller","xinput"],"latest_commit_sha":null,"homepage":null,"language":"Rich Text Format","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/speps.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LicenseError.jpg","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-07-04T19:32:11.000Z","updated_at":"2025-02-18T13:57:10.000Z","dependencies_parsed_at":"2022-09-14T21:21:21.485Z","dependency_job_id":null,"html_url":"https://github.com/speps/XInputDotNet","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/speps%2FXInputDotNet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/speps%2FXInputDotNet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/speps%2FXInputDotNet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/speps%2FXInputDotNet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/speps","download_url":"https://codeload.github.com/speps/XInputDotNet/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248261994,"owners_count":21074229,"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":["c-sharp","unity3d","xbox-controller","xinput"],"created_at":"2024-08-01T17:01:10.954Z","updated_at":"2025-04-10T17:32:15.403Z","avatar_url":"https://github.com/speps.png","language":"Rich Text Format","funding_links":[],"categories":["Rich Text Format"],"sub_categories":[],"readme":"XInputDotNet\n============\n\nC# wrapper around XInput, works with any Mono or .NET application (eg. Unity3D).\n\n### What is XInput?\n\n[XInput](http://msdn.microsoft.com/en-us/library/ee416996%28VS.85%29.aspx) is a DirectX API to manage the controllers connected to a PC (the same API is also used on Xbox 360). It allows an Xbox 360 controller to be used on a Windows PC.\n\n### What is XInput.NET?\n\n**XInput.NET** is a .NET library which wraps the functions of XInput. It is different from what you can find inside [SlimDX](http://slimdx.org/) for example because it is designed to be pure [CIL](http://en.wikipedia.org/wiki/Common_Intermediate_Language). That means you can use it in [Unity3D](http://unity3d.com/) Free (as well as Pro of course). The API was designed to be very similar (if not identical) to the [GamePad class from XNA](http://msdn.microsoft.com/en-us/library/microsoft.xna.framework.input.gamepad.aspx).\n\n### Ready to go !\n\nPre-built binaries are available from the [releases tab](https://github.com/speps/XInputDotNet/releases) :\n\n* **XInputDotNetPure.dll**, .NET assembly containing the [GamePad](http://msdn.microsoft.com/en-us/library/microsoft.xna.framework.input.gamepad.aspx) class\n    - You need to add a reference to this one in your C# project for example\n* **XInputInterface.dll**, utility DLL which makes the calls to XInput\n    - You have to copy this one next to your .exe\n\n### Examples\n\nSome examples are available in this repository :\n\n* **XInputDemo.exe**, small console application for the most simple use of the API\n* **XInputReporter.exe**, visual debugging aid for seeing the values from the controller\n* **XInputUnity**, Unity 4 project rotating a cube with the pad and changing colors\n\n### Using with Unity\n\n![Unity](https://raw.github.com/speps/XInputDotNet/master/Screenshot.jpg)\n\n* Download the latest `XInputDotNet.unityPackage` from the [releases tab](https://github.com/speps/XInputDotNet/releases)\n* Open the menu Assets \u003e Import Package \u003e Custom Package and select the package you just downloaded\n* See XInputTestCS.cs for a basic usage example\n\n### Building errors\n\n#### error CS1704: An assembly with the same name `XInputDotNetPure' has already been imported.\n\nIf you get this error, or a similar one, make sure the settings for each file matches the settings below.\n\nFor `Plugins\\x86\\XInputInterface.dll`\n\n![Plugin settings for x86 DLLs](https://raw.github.com/speps/XInputDotNet/master/SettingsX86.jpg)\n\nFor `Plugins\\x86_64\\XInputInterface.dll`\n\n![Plugin settings for x86_64 DLLs](https://raw.github.com/speps/XInputDotNet/master/SettingsX64.jpg)\n\nFor `Plugins\\XInputDotNetPure.dll`\n\n![Plugin settings for AnyCPU DLLs](https://raw.github.com/speps/XInputDotNet/master/SettingsAnyCPU.jpg)\n\n#### \u003ca name=\"free\"\u003e\u003c/a\u003eSpecial instructions for Free version of Unity\n\nNOTE: this is needed only for Unity 4, Unity 5 seems to have the right behaviour\n\n* Import the .unityPackage as described above\n* Copy `[Project Folder]\\Assets\\Plugins\\x86\\XInputInterface.dll` to `[Project Folder]\\XInputInterface.dll`\n* **Making a Build does NOT require to copy `XInputInterface.dll` in the same folder the your game .exe file**\n\n**NOTE** : you may see this error message but it should still work as expected, the message won't appear in a Build\n\n![License Error Message](https://raw.github.com/speps/XInputDotNet/master/LicenseError.jpg)\n\n### Notes\n\n* Under Windows XP, you'll need special drivers for your Xbox 360 Controller. You can find them at this address : [XBox 360 Controller for Windows Software](http://www.microsoft.com/en-us/download/details.aspx?id=34001)\n* You'll need the latest DirectX SDK to compile it, the binaries were built with the June 2010 version.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspeps%2FXInputDotNet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspeps%2FXInputDotNet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspeps%2FXInputDotNet/lists"}