Skip to content

rdady/gear-vr-controller-windows

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

gear-vr-controller-windows

Finally on windows! The Samsung Gear VR Controller can be utilised as an emulated mouse (and gamepad).

This project is written in C#, but I decided not to provide any binaries. Ever heard about LINQPad - The .NET Programmer's Playground https://www.linqpad.net ? The supplied gear-vr-controller.linq can be opened and executed with LINQPad 5. Works better with corporate machines.

Program is "AS IS", and I take no liabilities for any damage it causes.

This is an initial commit, WIP.

Windows 10 - How to use

In the line beginning with

UInt64 i_vrcontrollerMAC
be sure to have your MAC address! Use calc.exe on Windows, e.g. MAC 2C:BA:BA:25:6A:A1 written without semicolons HEXADECIMAL 2CBABA256AA1 gives in DECIMAL 49180498553505.

Bluetooth pairing + connection is done automatically by the program. No unpairing is necessary. Next time automatic connection - already paired state.

Linqpad will offer to download missing nuget packages, say YES to it.

LinqPad configuration

  • App.config

<configuration>
  <Capabilities>
    <DeviceCapability Name="bluetooth" />
  </Capabilities>
  <appSettings>
    <add key="SendKeys" value="SendInput" />
  </appSettings>
</configuration>
  • Additional Namespace imports

System
System.Linq
System.Runtime.InteropServices
  • Additional references

\LINQPad Queries\GATT\AudioSwitcher.AudioApi.CoreAudio.dll
\LINQPad Queries\GATT\AudioSwitcher.AudioApi.dll
\System.Linq.dll
\System.Numerics.dll
\System.Runtime.dll
\System.Runtime.InteropServices.WindowsRuntime.dll
\System.Runtime.Numerics.dll
\Reference Assemblies\Microsoft\Framework\.NETCore\v4.5\System.Runtime.WindowsRuntime.dll
\System.Threading.Tasks.dll
\System.Windows.Forms.dll
\Windows Kits\10\References\10.0.19041.0\Windows.Foundation.FoundationContract\4.0.0.0\Windows.Foundation.FoundationContract.winmd
\Windows Kits\10\References\10.0.19041.0\Windows.Foundation.UniversalApiContract\10.0.0.0\Windows.Foundation.UniversalApiContract.winmd
\Windows Kits\10\UnionMetadata\Facade\Windows.WinMD

Releases

No releases published

Packages

No packages published

Languages