43 lines
1 KiB
C#
43 lines
1 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.Data;
|
|
using System.Drawing;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using System.Windows.Forms;
|
|
using Mesen.GUI.Config;
|
|
using Mesen.GUI.Controls;
|
|
|
|
namespace Mesen.GUI.Forms.Config
|
|
{
|
|
public partial class frmSuborKeyboardConfig : BaseInputConfigForm
|
|
{
|
|
public frmSuborKeyboardConfig(ControllerInfo controllerInfo)
|
|
{
|
|
InitializeComponent();
|
|
|
|
if(!this.DesignMode) {
|
|
SetMainTab(this.tabMain);
|
|
|
|
Entity = controllerInfo;
|
|
|
|
ctrlSuborKeyboardConfig1.Initialize(controllerInfo.Keys[0]);
|
|
ctrlSuborKeyboardConfig2.Initialize(controllerInfo.Keys[1]);
|
|
ctrlSuborKeyboardConfig3.Initialize(controllerInfo.Keys[2]);
|
|
ctrlSuborKeyboardConfig4.Initialize(controllerInfo.Keys[3]);
|
|
}
|
|
}
|
|
|
|
private void btnClear_Click(object sender, EventArgs e)
|
|
{
|
|
ClearCurrentTab();
|
|
}
|
|
|
|
private void btnSetDefault_Click(object sender, EventArgs e)
|
|
{
|
|
GetControllerControl().Initialize(Presets.SuborKeyboard);
|
|
}
|
|
}
|
|
}
|