e5f0816061
GamingChanger.cs和NormalChanger.cs不再属于legacy了,因为InputSystem已经作废了:)
27 lines
772 B
C#
27 lines
772 B
C#
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
namespace AxibugEmuOnline.Client
|
|
{
|
|
public class GamingChanger : CommandChanger
|
|
{
|
|
|
|
Dictionary<KeyCode, EnumCommand> m_uiKeyMapper = new Dictionary<KeyCode, EnumCommand>();
|
|
public GamingChanger()
|
|
{
|
|
m_uiKeyMapper[KeyCode.Escape] = EnumCommand.OptionMenu;
|
|
|
|
if (Application.platform == RuntimePlatform.PSP2)
|
|
{
|
|
m_uiKeyMapper[Common.PSVitaKey.L] = EnumCommand.OptionMenu;
|
|
m_uiKeyMapper[Common.PSVitaKey.R] = EnumCommand.OptionMenu;
|
|
}
|
|
|
|
//PC XBOX
|
|
m_uiKeyMapper[Common.PC_XBOXKEY.Y] = EnumCommand.OptionMenu;
|
|
}
|
|
|
|
public override object GetConfig() => m_uiKeyMapper;
|
|
}
|
|
}
|