Comments (4)
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.
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.
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.
mouse_event doesnt work and its how i do mouse movement(i use user32)
from gearvrcontroller4windows.
Related Issues (2)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gearvrcontroller4windows.