This repository has been archived on 2023-05-28. You can view files and clone it, but cannot push or open issues/pull-requests.
SkyHook-Unity/README.md

677 B

SkyHook-Unity

SkyHook for Unity

Installation

  1. Open package manager with Window -> Package Manager
  2. Press + button and find Add package from git URL...

Add package from git URL

  1. Enter git+https://git.pikokr.dev/SkyHook/SkyHook-Unity.git and press Add button

Usage

Start and stop hook

SkyHookManager.StartHook(); // Start Hook

SkyHookManager.StopHook(); // Stop Hook, this is automatically called on exit

Receive events

NOTE: SkyHook does NOT give the correct key code. So you can't know what key the user actually pressed.

SkyHookMnager.KeyUpdated.AddListener(ev => {
  // Your code
});