quinton-ashley / cemu-no-gyro Goto Github PK
View Code? Open in Web Editor NEWMaps analog sticks to motion controls for Cemu.
License: MIT License
Maps analog sticks to motion controls for Cemu.
License: MIT License
Is there a chance for this to get ported to ryujinx?
After using Cemu-no-gyro with the left joystick on my 360 controller to control the motion, the up direction on the controller now only outputs about 20% "Force," or whatever you want to call it, meaning trying to move the camera in that direction is now painfully slow while all other directions work fine.
Good news is that this issue is only linked to cemu and doesn't affect any other games outside of cemu, but it's still a huge annoyance. I can seemingly fix it by upping the "Range," in Cemu, but then after I use cemu-no-gyro again it causes the same issue and I have to go back and up the range even more.
Gamepad and phone are able to connect, Cemuhook successfully detects it, but doesn't affect the actual input at all
Is it possible to add a feature to input raw-value from the analog axis? So, an X
value directly translates to cX
yaw for example (with c
just a constant for sensitivity). This way, the rotation is not incremental but absolute*.
Or maybe some pointers or ideas for me to achieve this, since I'm going to fork this anyway to add accelerometer control.
*EDIT: Brainfart, forgot gyro gives angular velocity, thus it should behave like analog stick (both input rate of rotational position change), if the value is given raw. So all that's left is making sure the gyro input and program output (to Cemuhook) is 1:1, and adding accelerometer support.
In case you're wondering what I'm trying to do: sending a DIY IMU-Arduino data to Cemu. I already managed to get the data and turn it into a fake controller (gyro & accel data as analog axis). So all that's left is communicating through Cemuhook.
so after allot of trial and error I am unable to get this program working. I cant seem to figure out your instructions. cemu or cemuhook auto detected your program but it does not behave the way your readme says. it will not detect a controller no matter what I do. the readme says that there is some sort of window I need to keep open in the background but no window pops up and there is no exe I can click to open a window. I tried using the software you linked to enable phone motion and when I ran that it seemed like everything was being detected but nothing I did with the phone caused any action in game and the values describing phone position on the site never adjusted. I'm on android so idk what the problem is since all of the troubleshooting info on that site is for ios. Is there a special place I need to unpack the files to get this mystery window to pop up? Is there some other third party program I need that isn't mentioned in the readme? I've spent a long time trying to get motion controls working on this I tried using ds4 for windows but after uninstalling and reinstalling every version of .net runtime that has ever existed several times it still refused to acknowledge that I had it and wouldn't run so I've got nothing left but this. please help.
Hello,
First of all thanks for this piece of software.. I just heard about it recently, thought should give it a try. I first tried with recent cemu, 1.25.0, and it didn't work. I saw again that it doesn't work with version above 1.20.0+, so i tried with 1.19.0... And it doesn't work with that too.
Unless i am doing something wrong here or it just doesn't work with 1.19.0. What's the last version it worked ok with?
I am trying to control the motion controls with my controller's right stick. I have a direct input game controller.
I use xoutput to emulate xinput controller.. cemu-no-gyro detects the controller, and says gamepad connected. DSU slot is already set in cemu options but motion controls aren't working at all.
Kindly share your thoughts...
Regards!
My friend and I have been working on using Python to send gyro data to the Cemu-No-Gyro app for several hours (6-8). However, we are struggling to find the JSON file template that we need to use. Could you provide us with the JSON file template, or even better, a sample code?
Hey !
I'm on cemu 2.0
On cemu no gyro 1.1.1 the controller (xbox one controller) is detected, but when I go to the input settings, no input is registered.
For example, when I move my sticks and triggers on the controller, the point on the left or right axis menu does not move.
Also, when I look for the API to add a controller, there is no 'DSU1' option. Closest option is 'DSUController'
big thanks for your work btw !
When i enter the link to access it with the Android phone, i get this:
Error: Failed to lookup view "pug/client" in views directory "./views" at Function.render (C:\cemu-no-gyro-1.0.11-win\resources\app.asar\node_modules\express\lib\application.js:580:17) at ServerResponse.render (C:\cemu-no-gyro-1.0.11-win\resources\app.asar\node_modules\express\lib\response.js:1008:7) at C:\cemu-no-gyro-1.0.11-win\resources\app.asar\views\js\index.js:214:7 at Layer.handle [as handle_request] (C:\cemu-no-gyro-1.0.11-win\resources\app.asar\node_modules\express\lib\router\layer.js:95:5) at next (C:\cemu-no-gyro-1.0.11-win\resources\app.asar\node_modules\express\lib\router\route.js:137:13) at Route.dispatch (C:\cemu-no-gyro-1.0.11-win\resources\app.asar\node_modules\express\lib\router\route.js:112:3) at Layer.handle [as handle_request] (C:\cemu-no-gyro-1.0.11-win\resources\app.asar\node_modules\express\lib\router\layer.js:95:5) at C:\cemu-no-gyro-1.0.11-win\resources\app.asar\node_modules\express\lib\router\index.js:281:22 at Function.process_params (C:\cemu-no-gyro-1.0.11-win\resources\app.asar\node_modules\express\lib\router\index.js:335:12) at next (C:\cemu-no-gyro-1.0.11-win\resources\app.asar\node_modules\express\lib\router\index.js:275:10)
I was looking for a program like this for a long time cause I figured a solution to emulate gyro movement with the controller was a no-brainer. But then I see the README and look through the issues and it appears that you've given up on this project... even though the part of the app without using a phone still works perfectly fine. The people who said they couldn't get it to work clearly just didn't set it up correctly.
The issue regarding a phone's connection with HTTPS was a good catch, but I'll bet it's an easier fix than you think.
I just wanted to bring this to your attention. If you really just don't want to continue working on this, that's fine. Maybe I'll fork it for myself.
Windows 10.0.17763.253 x64
CEMU 1.15.0e
Error: Failed to lookup view "pug/client" in views directory "./views"
at Function.render (C:\cemu-no-gyro\resources\app.asar\node_modules\express\lib\application.js:580:17)
at ServerResponse.render (C:\cemu-no-gyro\resources\app.asar\node_modules\express\lib\response.js:1008:7)
at C:\cemu-no-gyro\resources\app.asar\views\js\index.js:214:7
at Layer.handle [as handle_request] (C:\cemu-no-gyro\resources\app.asar\node_modules\express\lib\router\layer.js:95:5)
at next (C:\cemu-no-gyro\resources\app.asar\node_modules\express\lib\router\route.js:137:13)
at Route.dispatch (C:\cemu-no-gyro\resources\app.asar\node_modules\express\lib\router\route.js:112:3)
at Layer.handle [as handle_request] (C:\cemu-no-gyro\resources\app.asar\node_modules\express\lib\router\layer.js:95:5)
at C:\cemu-no-gyro\resources\app.asar\node_modules\express\lib\router\index.js:281:22
at Function.process_params (C:\cemu-no-gyro\resources\app.asar\node_modules\express\lib\router\index.js:335:12)
at next (C:\cemu-no-gyro\resources\app.asar\node_modules\express\lib\router\index.js:275:10)
version: 1.0.15
controller: xbox one
platform: windows 10
steps to reproduce:
The following error occurs:
Uncaught (in promise) ReferenceError: opt is not defined
at loop (C:\Users\Richard\AppData\Local\Programs\cemu-no-gyro\resources\app.asar\views\js\index.js:123)
I installed everyting, my Cemu already had the hook installed and using Cemu 1.22.12c. Nothing works, it does not detect my Power A Switch Wired controller, my LG Rebel 4 does not work at all, connects, but the gyro won't budge at all. I am using the right settings,
Hello,
I'm hoping you can help point me in the right direction. I have installed the app and it works well with the controller. I have connected my phone to the IP address and the app reports 'Phone connected!'. However on the phone screen the x,y and z stay at 0 and no input is detected. Am I missing a step? I couldn't see any instructions for getting this to work. Running a pixel 3xl.
Thanks :)
EDIT: I found this thread: https://github.com/hjmmc/WebGyroForCemuhook/releases
I tried that and using HTTPS and port 8443 works. However I'd love to be able to use your program and the sticks as well as the phone.
The button configuration is not saved across sessions.
I thought it could be saved in "%APPDATA%\Roaming\cemu-no-gyro\Preferences" but it doesn't.
Playing BOTW with a wired xbox one controller on windows 10 with 1.26.2f cemu and up-to-date cemuhook also. No issues with controller at all. Installed the exe file and ran it and CEMU detects the program in the DSU1 port but it has no effect on the game. Tried using "by MAC" rather than "by slot" in case that could somehow change it but no difference. I appreciate someone else recently commented on the application not working for them too but I thought I should give my own experience using it just in case it helps to shed any light on the underlying issue for you.
hey there I find that the motion not working on my phone (all x,y,z are zero) and I checked your code sees you use window.ondevicemotion lisenner. and after checking on the internet I see this
it says the motion detection feature are disabled on not secure context like connection through http. it will only work through https connection. could you guys somehow establish a https connection? since I am not farmilar with js.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.