mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2024-12-22 01:50:50 +00:00
81 lines
1.6 KiB
C#
81 lines
1.6 KiB
C#
|
|
#region ================== Copyright (c) 2007 Pascal vd Heiden
|
|
|
|
/*
|
|
* Copyright (c) 2007 Pascal vd Heiden, www.codeimp.com
|
|
* This program is released under GNU General Public License
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
*/
|
|
|
|
#endregion
|
|
|
|
#region ================== Namespaces
|
|
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.Drawing;
|
|
using System.Text;
|
|
using CodeImp.DoomBuilder.Properties;
|
|
using System.IO;
|
|
using CodeImp.DoomBuilder.IO;
|
|
using System.Collections;
|
|
using System.Windows.Forms;
|
|
|
|
#endregion
|
|
|
|
namespace CodeImp.DoomBuilder.Actions
|
|
{
|
|
internal struct KeyControl
|
|
{
|
|
#region ================== Variables
|
|
|
|
public int key;
|
|
public string name;
|
|
|
|
#endregion
|
|
|
|
#region ================== Constructor / Disposer
|
|
|
|
// Constructor
|
|
public KeyControl(Keys key, string name)
|
|
{
|
|
// Initialize
|
|
this.key = (int)key;
|
|
this.name = name;
|
|
}
|
|
|
|
// Constructor
|
|
public KeyControl(SpecialKeys key, string name)
|
|
{
|
|
// Initialize
|
|
this.key = (int)key;
|
|
this.name = name;
|
|
}
|
|
|
|
// Constructor
|
|
public KeyControl(int key, string name)
|
|
{
|
|
// Initialize
|
|
this.key = key;
|
|
this.name = name;
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region ================== Methods
|
|
|
|
// Returns name
|
|
public override string ToString()
|
|
{
|
|
return name;
|
|
}
|
|
|
|
#endregion
|
|
}
|
|
}
|