SimIO 0.7.3
dotnet add package SimIO --version 0.7.3
NuGet\Install-Package SimIO -Version 0.7.3
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="SimIO" Version="0.7.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add SimIO --version 0.7.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: SimIO, 0.7.3"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install SimIO as a Cake Addin #addin nuget:?package=SimIO&version=0.7.3 // Install SimIO as a Cake Tool #tool nuget:?package=SimIO&version=0.7.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
SimIO
Programmable Input Emulator for C#. It's a simulation enthusiast's utility similar to FreePIE and GlovePIE but for C#.
Features
Can read input from Keyboard, mouse or HID compatible devices via Rawinput and write Keyboard, mouse and joystick input using SendInput and vJoy.
Limitations and requirements
- Only works on Windows x64 platform.
- vJoy must be installed on the system.
- Unlike GlovePIE and FreePIE SimIO does not provide any user interface or editor.
Installation
$ dotnet -i new simio
then for each new project
$ dotnet new simioconsole
or
$ dotnet new simioblazor
Code Example
using th.SimIO;
using th.SimIO.Selectors;
public class BasicUse
{
static void Main()
{
var iJoystick = new Joystick.InputDeviceWrapper();
var oMouse = new Mouse.OutputDeviceWrapper();
var iKeyboard = new Keyboard.InputDeviceWrapper();
var oKeyboard = new Keyboard.OutputDeviceWrapper();
var xAxis = iJoystick.x.normalizedBidirectional();
var yAxis = iJoystick.y.normalizedBidirectional();
var escapeKey = iKeyboard.escape.button();
while(!escapeKey.isDown) {
SimIO.update();
oKeyboard.w.value = yAxis.value < -0.5f ? 1 : 0;
oKeyboard.s.value = yAxis.value > 0.5f ? 1 : 0;
oKeyboard.a.value = xAxis.value < -0.5f ? 1 : 0;
oKeyboard.d.value = xAxis.value > 0.5f ? 1 : 0;
oKeyboard.leftshift.value = iJoystick.z.value < 0.5f ? 1.0f : 0.0f;
oMouse.leftButton.value = iJoystick.button1.value;
oMouse.rightButton.value = iJoystick.button2.value;
Thread.Sleep(16);
}
Console.WriteLine("Ok");
}
}
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0-windows7.0 is compatible. net7.0-windows was computed. net8.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net6.0-windows7.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.