Comments (8)
Oh my, it's been a while since I worked on this project haha. I have a few questions. Why convert real gyro and accel data to the analog axes of a fake controller? How are you doing that? Does the fake controller connect to cemu-no-gyro?
from cemu-no-gyro.
Why convert real gyro and accel data to the analog axes of a fake controller?
Well, that's the most versatile way to do it. The Arduino is seen as a simple controller HID and I can use it on generic programs that'd accept joystick input like yours (Assetto Corsa is another great example, it's highly customizable, but ofc it'd only accept devices recognized as HID by Windows).
Otherwise I'd be dealing with raw serial data, which is not exactly usable in a lot of scenario (there're ways to convert serial to fake joystick, but that'd add another layer).
Does the fake controller connect to cemu-no-gyro?
I couldn't test it for now, but even my old dinput controller works (through x360ce). It shouldn't be a problem.
from cemu-no-gyro.
from cemu-no-gyro.
My setup is a generic controller + that IMU-Arduino (as a fake controller), so it'd be similar to the controller + phone setup.
If you need a user interaction (ex for confirmation or detection) from the fake controller, it can be easily done by either adding a button to the Arduino or sending a serial command from PC => Arduino => PC (as fake controller).
from cemu-no-gyro.
Lmk if it connects.
The Arduino arrived today, tested through x360ce and your program detects it. Also tested with PadTest, no strange behavior.
Extra: I edited my original issue comment above regarding "raw value".
from cemu-no-gyro.
Good! Does it work as you'd expect then? Should I close this issue?
from cemu-no-gyro.
I'll test it further for now, and close the issue myself if there's no issue with anything related to the data send by the program.
For now, just a casual question, is it true I just need to deal with views/js/index.js
if I want to deal with the core functionality (ex: add accelerometer control)? Meanwhile most of the other things are for webgyro and UI.
from cemu-no-gyro.
Tested and everything seems to be perfect. It's very similar to the Controller + Smartphone setup, only now ofc I don't need to move around a heavy phone. Thx for making my years-old project possible lol.
Repository: https://github.com/ArsenicBismuth/Cemu-GyroStick
from cemu-no-gyro.
Related Issues (20)
- Does not work at all even with old version of cemu HOT 2
- Can't get it to work with cemu 1.22.7 HOT 2
- nothing works. HOT 2
- No motion controls detected in game HOT 2
- phone motion is un usable due to http connection. HOT 2
- App still works with Cemu 1.X.X, just not the phone part HOT 2
- Cannot find module 'contro-ui' HOT 4
- not working with cemu 2.0 HOT 6
- No URL for phone connection HOT 3
- Not working on Win10 x64 HOT 3
- Ryujinx port? HOT 4
- Request for JSON Template or Sample Code for Sending Gyro Data to Cemu-No-Gyro App with Python HOT 1
- Option mooved in Cemu HOT 1
- Preference settings not saved HOT 1
- Permenantly altered joystick range after using Cemu-no-gyro HOT 5
- Crash when pressing trigger button HOT 3
- v1.016 doesn't seem to work with CEMU 1.20c? HOT 3
- No input detected from pixel 3xl HOT 2
- Does not work at all. HOT 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 cemu-no-gyro.