Giter VIP home page Giter VIP logo

driver_leap's Introduction

Build status Release

Fork with updated vendor libraries and extended features.

Installation (for users)

  • Install latest Orion Beta
  • Method #1:
    • Create 'leap' folder in '<SteamVR_folder>/drivers'
    • Grab latest release archive for your platform
    • Extract archive to '<SteamVR_folder>/drivers/leap'
    • Add line in section 'steamvr' of '<Steam_folder>/config/steamvr.vrsettings' file:
    "activateMultipleDrivers": true,
  • Method #2:

Building (for developers)

  • Open 'driver_leap.sln' solution in Visual Studio 2013
  • Build your platform:
    • x64 - build output is in 'bin/win64'
    • x86 - build output is in 'bin/win32'
  • Copy build files to 'leap/bin/<your_platform>':
    • driver_leap.dll
    • gesture_checker.exe
    • leap_monitor.exe
      Note: There are post-build events for projects to copy build files directly to SteamVR driver folder that can be enabled manually.
  • Copy additional shared libraries to 'leap/bin/<your_platform>':
    • vendor/LeapSDK/bin/<your_platform>/LeapC.dll
    • vendor/openvr/bin/<your_platform>/openvr_api.dll
  • Copy 'resources' folder from solution root to driver's 'leap' folder.

Control configuration and inputs

Driver can emulate HTC Vive controllers and Valve Index controllers with skeletal animation and work in desktop and HMD orientations. It's adjusted by editing settings.xml in 'resources' folder.
There are more configurable restrictions, such as global input, trackpad, trigger, grip and etc.
Controls are changed by game profiles that are enabled automatically when game is started from Steam.
Available hotkeys in NumLock active state:

  • Ctrl-P: Enable/disable right hand controller.
  • Ctrl-O: Enable/disable left hand controller.

HTC Vive controllers emulation

Game profiles:

  • vrchat - profile for VRChat. Control restrictions are ignored.
    Controls list:
    • Gun - corresponding hand gesture
    • V-shape - corresponding hand gesture
    • Point - corresponding hand gesture
    • Rock out - corresponding hand gesture
    • Thumbs up - corresponding hand gesture
    • Spread hand - corresponding hand gesture. Also corresponds to grip button.
    • Trigger - grab gesture
    • Application menu - formed T-shape with two hands
  • default - profile for other games.
    Controls list:
    • Trigger - bending of the index finger
    • Grip - grab gesture
    • System menu - formed T-shape with two hands
    • Application menu - hand with palm directed towards face
    • Touchpad - thumb press
    • Touchpad circle - index finger of another hand directed to palm

Valve Index controllers emulation

Game profiles:

  • vrchat - profile for VRChat. Note: game gestures are not implemented due to finger tracking, grip input profile should be used.
    Controls list:
    • Trigger - bending of the index finger
    • Grip - grab gesture
    • Game menu - formed T-shape with two hands
  • default - profile for other games.
    Controls list:
    • Trigger - bending of the index finger
    • Grip - bending of middle, ring and pinky fingers
    • Touchpad - thumb press
    • Touchpad circle - index finger of another hand directed to palm
    • Thumbstick press - touching of thumb finger tip and index finger tip of another hand
    • Thumbstick direction - arrow keys for left hand, Num2/8/4/6 keys for right hand; available when NumLock is active
    • Button A - touching of thumb and middle finger tips
    • Button B - touching of thumb and pinky finger tips
    • System button - formed T-shape with two hands

Troubleshooting

Sometimes installation of base project driver doesn't register driver folder for SteamVR. To manually add it:

  • Open console as administrator in '<SteamVR_folder>/bin/win32' (or '<SteamVR_folder>/bin/win64') and execute command:
vrpathreg adddriver "path_to_leap_folder"
  • Check if driver folder is added by calling 'vrpathreg' without any arguments
  • Open '<Steam_folder>/config/steamvr.vrsettings' file and add line in 'steamvr' section:
"activateMultipleDrivers": true,

driver_leap's People

Contributors

bjj avatar cbuchner1 avatar connerbrooks avatar sdraw avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.