Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/paring-chan/skyhook-unity
SkyHook for Unity. (Mirrored)
https://github.com/paring-chan/skyhook-unity
Last synced: 2 days ago
JSON representation
SkyHook for Unity. (Mirrored)
- Host: GitHub
- URL: https://github.com/paring-chan/skyhook-unity
- Owner: paring-chan
- License: mit
- Created: 2022-11-12T12:06:05.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-05-28T10:09:50.000Z (over 1 year ago)
- Last Synced: 2024-12-31T07:45:57.008Z (3 days ago)
- Language: C#
- Homepage: https://git.pikokr.dev/SkyHook/SkyHook-Unity
- Size: 25.8 MB
- Stars: 2
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SkyHook-Unity
SkyHook for Unity.
## Installation
1. Open package manager with `Window -> Package Manager`.
2. Click `+` button and find `Add package from git URL...`.
![Add package from git URL](images/tuto1.png)
3. Paste `git+https://git.pikokr.dev/SkyHook/SkyHook-Unity.git` and click `Add` button.## Usage
### Starting and stopping the hook
```cs
SkyHookManager.StartHook(); // Starts the hookSkyHookManager.StopHook(); // Stops the hook, this is automatically called on exit
```### Receiving key events
> NOTE:
> - `Label` field for labelling keys' names such as F11
> - `Key` field is the raw key code from native module.```cs
SkyHookManager.KeyUpdated.AddListener(ev => {
// Your code
});
```