Coder Social home page Coder Social logo

Comments (4)

relt-1 avatar relt-1 commented on August 11, 2024 1

ok i managed to do something after countless tries
https://drive.google.com/file/d/115oaINrKtrb2wQbMJjg143ZD-7Mc_3eT/view?usp=sharing
if you somehow manage to make it compile it should work.
by default you use the touchpad to move the mouse.
i couldnt implement mouse clicks though

from gearvrcontroller4windows.

ilyabru avatar ilyabru commented on August 11, 2024

I don't have the X and Y touch pad axes implemented right now, but I can add them pretty quickly if you need it.

But just so you know, it will only work in a UWP app that you are developing.
Using the controller as a mouse in the OS itself would probably require someone to write a driver.

from gearvrcontroller4windows.

ilyabru avatar ilyabru commented on August 11, 2024

Hey, this is pretty cool! It compiled first try and indeed moved the mouse.

I suggest you to make your own project for the mouse controls on github and reference my nuget package to obtain controller readings. And since you figured out the mouse cursor movement surely there's a similar way to do clicks?

I also made a new update to the package which includes the touch pad X and Y axis, similar to how you did it but with simplified logic. Each axis now has a value from 0 - 315, so you'll have to change your calculations a bit if you use it. I also added some motion sensor readings, but they ain't very useful without applying a fusion drift algorithm.

from gearvrcontroller4windows.

relt-1 avatar relt-1 commented on August 11, 2024

mouse_event doesnt work and its how i do mouse movement(i use user32)

from gearvrcontroller4windows.

Related Issues (2)

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.