Files
UnityExplorer_Fix/src/Input/NoInput.cs

24 lines
573 B
C#
Raw Normal View History

2020-10-07 16:20:34 +11:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UnityEngine;
namespace Explorer.Input
{
// Just a stub for games where no Input module was able to load at all.
public class NoInput : IAbstractInput
2020-10-07 16:20:34 +11:00
{
public Vector2 MousePosition => Vector2.zero;
2020-10-07 16:20:34 +11:00
public bool GetKey(KeyCode key) => false;
public bool GetKeyDown(KeyCode key) => false;
2020-10-07 16:20:34 +11:00
public bool GetMouseButton(int btn) => false;
public bool GetMouseButtonDown(int btn) => false;
2020-10-07 16:20:34 +11:00
public void Init() { }
2020-10-07 16:20:34 +11:00
}
}