{"repo":"elringus/unity-raw-input","free":true,"listed":false,"github":"https://github.com/elringus/unity-raw-input","clone":"git clone https://github.com/elringus/unity-raw-input.git","description":"Windows Raw Input wrapper for Unity game engine","language":"C#","stars":246,"topics":["unity3d","unity3d-plugin","input","native","event-driven","background"],"license":"MIT","category":"game-templates","readme_excerpt":"Description Wrapper over Windows Raw Input API.aspx) to hook for the native input events. Allows receiving input events even when the Unity application is in background (not in focus). Will only work on Windows platform. Only keyboard and mouse input is detected. Installation Download and import the package: UnityRawInput.unitypackage. Usage Enable Run In Background in project's player settings; if not enabled, expect severe mouse slowdown when the application is not in focus https://github.com/elringus/unity-raw-input/issues/19#issuecomment-1227462101. Initialize the service to start processing input messages: Optionally, configure whether input messages should be handled when the application is not in focus and whether handled messages should be intercepted (both disabled by default): Add listeners to handle input events: Check whether specific key is currently pressed: Stop the service: Don't forget to remove listeners when you no longer need them: Find usage example in the project: https://github.com/elringus/unity-raw-input/blob/main/Assets/Runtime/LogRawInput.cs. List of the raw keys with descriptions: https://docs.microsoft.com/en-us/windows/win32/inputdev/virtual-key-codes. --- The plugin is used in Naninovel: Visual Novel, Dialogue & Cutscene Storytelling Engine . Check it out!","default_branch":null,"files":null,"tree":[],"storefront":"/r/elringus","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/elringus/unity-raw-input/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}