2017-12-21 21:31:42 -05:00
|
|
|
|
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;
|
|
|
|
|
|
|
|
|
|
namespace Mesen.GUI.Forms.Config
|
|
|
|
|
{
|
|
|
|
|
public partial class frmMouseConfig : BaseConfigForm
|
|
|
|
|
{
|
|
|
|
|
public frmMouseConfig(MouseInfo mouseInfo)
|
|
|
|
|
{
|
|
|
|
|
InitializeComponent();
|
|
|
|
|
|
|
|
|
|
Entity = mouseInfo;
|
|
|
|
|
AddBinding("Sensitivity", trkSensitivity);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected override void OnFormClosed(FormClosedEventArgs e)
|
|
|
|
|
{
|
|
|
|
|
//Do not save anything, the parent input form will handle the changes
|
|
|
|
|
if(this.DialogResult == DialogResult.OK) {
|
|
|
|
|
UpdateObject();
|
|
|
|
|
}
|
2017-12-28 13:01:53 -05:00
|
|
|
|
base.OnFormClosed(e);
|
2017-12-21 21:31:42 -05:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|