Skip to content

Event System (Advanced)

ludos1978 edited this page Jun 28, 2018 · 1 revision

Callback for Input Devices (Advanced Usage)

You can hook up individual controller events to any function by intercepting the controllers attached to the system. An example can be found in NetXr-Examples/Scripts/VrHandController.cs .

using NetXr;
// will call the function for all active input devices now, and make a callback for later added input devices
InputDeviceManager.Instance.AddCallbackForInputDevice(InitControllerCallback);