Code Monkey home page Code Monkey logo

openvr-driver-for-diy's Issues

Linux - "Invalid input type click for controller"

Hi there and thanks for your software.
Just trying to write some custom driver and found this one gonna be a nice template.
I've built the project for Linux and it started up (I can see the driver is loaded in logs), but the controls are not working, so I'm stuck looking at the home screed. Idk if that was necessary but I did the room setup procedure, just in case.

When looking through logs I saw a ton of the following messages:

Mon Jun 13 2022 22:49:23.820949 - Invalid input type click for controller (/user/head/proximity)
Mon Jun 13 2022 22:49:23.821208 - Invalid input type touch for controller (/user/hand/left/input/trackpad)
Mon Jun 13 2022 22:49:23.821250 - Invalid input type touch for controller (/user/hand/right/input/trackpad)
Mon Jun 13 2022 22:49:23.821291 - Invalid input type position for controller (/user/hand/left/input/joystick)
Mon Jun 13 2022 22:49:23.821310 - Invalid input type position for controller (/user/hand/right/input/joystick)

I didn't find any relative information for that, but after looking through the code a bit, I tried to log some data out of your GetPose function. So it seems like the rotation and position variables were not changing at all for both controllers and hmd, at this moment I noticed the GetAsyncKeyState, which is not implemented in Linux, so ignoring key presses became clear. But the error messages seem to be wrong. Did you have such messages on windows?

disable for hmd and left controller

Is there any way to disable the driver for my hmd and left controller? I need to use my Quest 2 left controller along with my headset along with this driver for my other controller...

How to port this code to input emulator

I compiled the input emulator fixed
project (https://github.com/Louka3000/OpenVR-InputEmulator-Fixed) that uses opervr 1.0.11. It should be perfect for my needs, it creates a virtual controller and allows to move it giving command line. My problem is that It works for the movement but not for the pressure of buttons (I guess it is due the old open vr version). Your driver works perfectly about the buttons emulation, but has two limitation that i need your help to remove:

  1. I can't move the camera in my application (I can use the real hmd if is possible to avoid the hmd emulation),
  2. I need to put the controller in a certain position in order to give the input, can i do it with your driver?

Summarizing, I need the real helmet and two virtual controller in specific location that press buttons.
Can you help me to realize it?

Still confused

I'm trying to make a driver with the ability to map keys kind of like your HalfLifeAlyx driver, but I want to map the keys to control every aspect of the controllers and have the mouse control the HMD (some keyboard buttons too) I just can't figure out where to even start programming my own driver. I'm on windows using visual studio.

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.