Skip to content

Instantly share code, notes, and snippets.

@jbienz
jbienz / InputManager.cs
Created December 4, 2021 22:38
Manages hardware buttons on all types of Looking Glass displays including Gen2 and classic.
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace LookingGlass
{
/// <summary>
/// Represents the hardware buttons present on all generations of Looking Glass displays.
/// </summary>
@jbienz
jbienz / ExtendedInput.cs
Created December 4, 2021 22:33
Unity class for working with extended keys which Unity does not support.
#if UNITY_STANDALONE_WIN || UNITY_EDITOR_WIN
#define EXTENDED_INPUT_WINDOWS
#endif
using System.Collections.Generic;
using System.Runtime.InteropServices;
using UnityEngine;
/// <summary>
/// Extended key codes that are not supported by Unity.