Code Monkey home page Code Monkey logo

Comments (8)

quinton-ashley avatar quinton-ashley commented on May 28, 2024

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.

ArsenicBismuth avatar ArsenicBismuth commented on May 28, 2024

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.

quinton-ashley avatar quinton-ashley commented on May 28, 2024

from cemu-no-gyro.

ArsenicBismuth avatar ArsenicBismuth commented on May 28, 2024

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.

ArsenicBismuth avatar ArsenicBismuth commented on May 28, 2024

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.

quinton-ashley avatar quinton-ashley commented on May 28, 2024

Good! Does it work as you'd expect then? Should I close this issue?

from cemu-no-gyro.

ArsenicBismuth avatar ArsenicBismuth commented on May 28, 2024

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.

ArsenicBismuth avatar ArsenicBismuth commented on May 28, 2024

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)

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.