28 lines
839 B
C#
28 lines
839 B
C#
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
namespace AxibugEmuOnline.Client
|
|
{
|
|
public class NesGamingScheme : ControlScheme
|
|
{
|
|
public override void SetUIKeys(Dictionary<KeyCode, EnumCommand> uiKeyMapper)
|
|
{
|
|
uiKeyMapper[KeyCode.Escape] = EnumCommand.OptionMenu;
|
|
|
|
if (Application.platform == RuntimePlatform.PSP2)
|
|
{
|
|
uiKeyMapper[Common.PSVitaKey.L] = EnumCommand.OptionMenu;
|
|
uiKeyMapper[Common.PSVitaKey.R] = EnumCommand.OptionMenu;
|
|
}
|
|
|
|
//PC XBOX
|
|
uiKeyMapper[Common.PC_XBOXKEY.Y] = EnumCommand.OptionMenu;
|
|
}
|
|
}
|
|
|
|
public static partial class ControlSchemeSetts
|
|
{
|
|
public static NesGamingScheme NES { get; private set; } = new NesGamingScheme();
|
|
}
|
|
}
|