mirror of
https://github.com/RHeavenStudioPlus/HeavenStudioPlus.git
synced 2024-11-22 01:25:12 +00:00
Fix Linux Playback/Keyboard Bug (#373)
This commit is contained in:
parent
6d2762993b
commit
3239fc16ae
1 changed files with 6 additions and 6 deletions
|
@ -87,8 +87,8 @@ namespace HeavenStudio
|
||||||
|
|
||||||
public static InputController GetInputController(int player)
|
public static InputController GetInputController(int player)
|
||||||
{
|
{
|
||||||
// Needed so Keyboard works on MacOS
|
// Needed so Keyboard works on MacOS and Linux
|
||||||
#if UNITY_STANDALONE_OSX || UNITY_EDITOR_OSX
|
#if UNITY_STANDALONE_OSX || UNITY_EDITOR_OSX || UNITY_EDITOR_LINUX || UNITY_STANDALONE_LINUX
|
||||||
inputDevices = new List<InputController>();
|
inputDevices = new List<InputController>();
|
||||||
if(inputDevices.Count < 1)
|
if(inputDevices.Count < 1)
|
||||||
{
|
{
|
||||||
|
@ -119,8 +119,8 @@ namespace HeavenStudio
|
||||||
//controller IDs are determined by connection order (the Keyboard is always first)
|
//controller IDs are determined by connection order (the Keyboard is always first)
|
||||||
|
|
||||||
|
|
||||||
// Needed so Keyboard works on MacOS
|
// Needed so Keyboard works on MacOS and Linux
|
||||||
#if UNITY_STANDALONE_OSX || UNITY_EDITOR_OSX
|
#if UNITY_STANDALONE_OSX || UNITY_EDITOR_OSX || UNITY_EDITOR_LINUX || UNITY_STANDALONE_LINUX
|
||||||
inputDevices = new List<InputController>();
|
inputDevices = new List<InputController>();
|
||||||
if(inputDevices.Count < 1)
|
if(inputDevices.Count < 1)
|
||||||
{
|
{
|
||||||
|
@ -142,8 +142,8 @@ namespace HeavenStudio
|
||||||
|
|
||||||
public static void UpdateInputControllers()
|
public static void UpdateInputControllers()
|
||||||
{
|
{
|
||||||
// Needed so Keyboard works on MacOS
|
// Needed so Keyboard works on MacOS and Linux
|
||||||
#if UNITY_STANDALONE_OSX || UNITY_EDITOR_OSX
|
#if UNITY_STANDALONE_OSX || UNITY_EDITOR_OSX || UNITY_EDITOR_LINUX || UNITY_STANDALONE_LINUX
|
||||||
inputDevices = new List<InputController>();
|
inputDevices = new List<InputController>();
|
||||||
if(inputDevices.Count < 1)
|
if(inputDevices.Count < 1)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue