All Projects → Elringus → UnityRawInput

Elringus / UnityRawInput

Licence: MIT License
Windows Raw Input wrapper for Unity game engine

Programming Languages

C#
18002 projects

Projects that are alternatives of or similar to UnityRawInput

React Native Google Place Picker
React Native Wrapper of Google Place Picker for iOS + Android.
Stars: ✭ 180 (+39.53%)
Mutual labels:  native, input
UnityNativeTool
Allows to unload native plugins in Unity3d editor
Stars: ✭ 147 (+13.95%)
Mutual labels:  native, unity3d-plugin
Vaser
Vaser is a powerful high performance event based network engine library for C# .Net. It’s possible to start multiple servers in one program and use the same network code for all servers. In the network communication are all strings are omitted, instead it is based on a unique binary identifier, which the CPU and memory relieves massively.
Stars: ✭ 23 (-82.17%)
Mutual labels:  event-driven, unity3d-plugin
BulkDownloader
BulkDownloader is used for multiple downloading process easy. It provides progress listener for each files and for whole file. It guarantees completion of download files as it runs on work manager
Stars: ✭ 24 (-81.4%)
Mutual labels:  background
tom-select
Tom Select is the hybrid of a textbox and select box. Forked from selectize.js to provide a framework agnostic autocomplete widget with native-feeling keyboard navigation. Useful for tagging, contact lists, etc.
Stars: ✭ 520 (+303.1%)
Mutual labels:  input
extension-networking
Library developed for OpenFL to facilitate connections between applications, using TCP sockets, and following the scheme of event-driven programming.
Stars: ✭ 29 (-77.52%)
Mutual labels:  native
eventify
Lightweight Module for Asynchronous Event Driven Systems
Stars: ✭ 14 (-89.15%)
Mutual labels:  event-driven
MoonMotion
Moon Motion Toolkit - Free and open source toolkit for VR locomotion
Stars: ✭ 38 (-70.54%)
Mutual labels:  unity3d-plugin
ng-caret-aware
AngularJS directive for caret aware elements
Stars: ✭ 12 (-90.7%)
Mutual labels:  input
CoreRTDemo
Building a native library in C# and calling it from C++
Stars: ✭ 16 (-87.6%)
Mutual labels:  native
Multiplatform-Bus
Kotlin event-bus compatible with Android & native iOS
Stars: ✭ 43 (-66.67%)
Mutual labels:  native
vaadin-text-field
The themable Web Component providing input controls. Part of the Vaadin components.
Stars: ✭ 29 (-77.52%)
Mutual labels:  input
jquery-rsSliderLens
UI slider control that magnifies the current value
Stars: ✭ 20 (-84.5%)
Mutual labels:  input
vue-input-streaming
A Vue2 Input Streaming RealTime And Two Way Data Binding Broadcasting with Pusher
Stars: ✭ 24 (-81.4%)
Mutual labels:  input
IwEngine
This is an engine that I initially started building after taking a game coding class in high school. I didn't like Unity so tried to make something more code focused that was personally easier to use.
Stars: ✭ 97 (-24.81%)
Mutual labels:  input
react-qml
Build native, high-performance, cross-platform applications through a React (and/or QML) syntax
Stars: ✭ 90 (-30.23%)
Mutual labels:  native
space-cloud
Open source Firebase + Heroku to develop, scale and secure serverless apps on Kubernetes
Stars: ✭ 3,405 (+2539.53%)
Mutual labels:  event-driven
react-native-navigation-drawer-extension
Drawer API built on top of wix react-native-navigation for iOS and Android (with TypeScript!)
Stars: ✭ 151 (+17.05%)
Mutual labels:  native
ember-phone-input
An Ember.js component to handle international phone numbers
Stars: ✭ 22 (-82.95%)
Mutual labels:  input
svelte-search
Accessible, customizable Svelte search component
Stars: ✭ 17 (-86.82%)
Mutual labels:  input

Download package

For Unity 2017.4 and later: UnityRawInput.unitypackage.

Please be aware that you don't need to clone the whole repository in order to use the extension in your project. Either download package from the link above or extract Assets/UnityRawInput folder from the repository project – it contains all the required assets; other stuff is just for testing purposes.

Description

Wrapper over Windows Raw Input API to hook for the native input events. Allows to receive input events even when the Unity application is in background (not in focus).

Will only work on Windows platform.

Only keyboard input is currently supported.

Usage

Include package namespace.

using UnityRawInput;

Initialize the input service to start processing native input messages.

RawKeyInput.Start();

Optinally, you can specify whether input messages should be handled when the application is not in focus (disabled by default).

var workInBackground = true;
RawKeyInput.Start(workInBackground);

Add listeners for the input events.

RawKeyInput.OnKeyUp += HandleKeyUp;
RawKeyInput.OnKeyDown += HandleKeyDown;

private void HandleKeyUp (RawKey key) { ... }
private void HandleKeyDown (RawKey key) { ... }

You can also check whether specific key is currently pressed.

if (RawKeyInput.IsKeyDown(key)) { ... }

You can stop the service at any time.

RawKeyInput.Stop();

Don't forget to remove listeners when you no longer need them.

private void OnDisable ()
{
    RawKeyInput.OnKeyUp -= HandleKeyUp;
    RawKeyInput.OnKeyDown -= HandleKeyDown;
}
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].