mirror of
https://github.com/livingcomputermuseum/ContrAlto.git
synced 2026-03-01 01:29:51 +00:00
Initial commit of changes for 1.2.3. This includes:
- Scripting support: Allows for recording and playback of mouse/keyboard input and various system control actions. Simple (i.e. basic) scripting format. - Fix for stale packets left in ethernet input queue; packets received by pcap while Alto's receiver is off are discarded. - Mouse input made more accurate, and tweaked to avoid Alto microcode bug that causes erroneous mouse inputs under very rare circumstances on real hardware, but much more frequently under emulation. - Small code cleanup here and there. Moved many UI strings to resources, many more to go.
This commit is contained in:
64
Contralto/Scripting/DebuggerAttributes.cs
Normal file
64
Contralto/Scripting/DebuggerAttributes.cs
Normal file
@@ -0,0 +1,64 @@
|
||||
/*
|
||||
This file is part of ContrAlto.
|
||||
|
||||
ContrAlto is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
ContrAlto 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 Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with ContrAlto. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
|
||||
using System;
|
||||
|
||||
namespace Contralto.Scripting
|
||||
|
||||
{
|
||||
public class DebuggerFunction : Attribute
|
||||
{
|
||||
public DebuggerFunction(string commandName)
|
||||
{
|
||||
_commandName = commandName;
|
||||
_usage = "<No help available>";
|
||||
}
|
||||
|
||||
public DebuggerFunction(string commandName, string description)
|
||||
{
|
||||
_commandName = commandName;
|
||||
_description = description;
|
||||
}
|
||||
|
||||
public DebuggerFunction(string commandName, string description, string usage)
|
||||
{
|
||||
_commandName = commandName;
|
||||
_description = description;
|
||||
_usage = usage;
|
||||
}
|
||||
|
||||
public string CommandName
|
||||
{
|
||||
get { return _commandName; }
|
||||
}
|
||||
|
||||
public string Usage
|
||||
{
|
||||
get { return _usage; }
|
||||
}
|
||||
|
||||
public string Description
|
||||
{
|
||||
get { return _description; }
|
||||
}
|
||||
|
||||
private string _commandName;
|
||||
private string _description;
|
||||
private string _usage;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user