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.
|
|
|
|
|
|
2020-10-12 20:15:41 +11:00
|
|
|
|
public class NoInput : IAbstractInput
|
2020-10-07 16:20:34 +11:00
|
|
|
|
{
|
2020-10-12 20:15:41 +11:00
|
|
|
|
public Vector2 MousePosition => Vector2.zero;
|
2020-10-07 16:20:34 +11:00
|
|
|
|
|
2020-10-12 20:15:41 +11:00
|
|
|
|
public bool GetKey(KeyCode key) => false;
|
|
|
|
|
public bool GetKeyDown(KeyCode key) => false;
|
2020-10-07 16:20:34 +11:00
|
|
|
|
|
2020-10-12 20:15:41 +11:00
|
|
|
|
public bool GetMouseButton(int btn) => false;
|
|
|
|
|
public bool GetMouseButtonDown(int btn) => false;
|
2020-10-07 16:20:34 +11:00
|
|
|
|
|
2020-10-12 20:15:41 +11:00
|
|
|
|
public void Init() { }
|
2020-10-07 16:20:34 +11:00
|
|
|
|
}
|
|
|
|
|
}
|