Skip to content

Commit

Permalink
Release version 0.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
dancol90 committed Apr 22, 2020
1 parent a1a4865 commit ac02d7a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 20 deletions.
29 changes: 10 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ The HID device will be hidden to the whole system, showing only the emulated Xbo

XInput emulation is provided by ViGem, by Benjamin Höglinger

## Prerequisites

If any version of mi-360 prior to version 0.5 is installed, please uninstall it before updating.

ViGEm bus is required to be installed to use this utility. You can find the auto-updating installer [here](https://github.com/ViGEm/ViGEmBus/releases).

## Easy install: pre-packaged setup

Download the latest version of the setup from the Releases page and run it.
Expand All @@ -15,26 +21,11 @@ Download the latest version of the setup from the Releases page and run it.
The solution can be built with Visual Studio 2017 Community.
No special dependencies are needed.

Some drivers must be installed before running the application.
You can find all the needed files inside the Drivers directory.

### Drivers installation instructions

- Install HidGuardian by following the instruction at https://docs.vigem.org/#!hidguardian-v1-installation.md
- Install ViGem by following one of this links:
- Easy setup: https://docs.vigem.org/#!vigem-bus-driver-installation.md
- Manual setup: https://docs.vigem.org/#!vigem-bus-driver-installation-caveman-edition.md

### Sources of the included files

- ViGem drivers v1.14.3.0: https://downloads.vigem.org/.stable/latest/windows/x86_64/ViGEmBus_signed_Win7-10_x86_x64_latest.zip
- devcon.exe utility: https://downloads.vigem.org/other/microsoft/devcon.zip

## HIDLibrary modifications

This repository contains a custom version of HIDLibrary by Mike O'Brien, with some changes that addresses a common problem.
This repository contains a custom version of HIDLibrary by Mike O'Brien, with some changes that addresses a common problem:

The first change is the addition of a call to ``NativeMethods.CancelIo()`` in case of a timeout in ``ReadData()``.
- Added a call to ``NativeMethods.CancelIo()`` in case of a timeout in ``ReadData()``.
Without that, every subsequent call to ReadData after a timeout will result in a timeout. Also, the library crashes when closing the device, making the whole application crash (at a very low level).

The second change consists in avoiding any call to `IsConnected` when reading a HID report. This property forces a re-enumeration of the devices, an activity that is pretty heavy when repeated several times per second.
- Avoided any call to `IsConnected` when reading a HID report. This property forces a re-enumeration of the devices, an activity that is pretty heavy when repeated several times per second.
- Added some methods to enable/disable an HID device through Windows API.
2 changes: 1 addition & 1 deletion Source/mi-360/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@
// È possibile specificare tutti i valori oppure impostare valori predefiniti per i numeri relativi alla revisione e alla build
// usando l'asterisco '*' come illustrato di seguito:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("0.4.1")]
[assembly: AssemblyVersion("0.5.0")]

0 comments on commit ac02d7a

Please sign in to comment.