Giter Site home page Giter Site logo

Comments (6)

flash62au avatar flash62au commented on June 1, 2024

We already do something related for the gamepads.
The 'icade' format in particular is just upper and lower case characters.

So a generic one for a keyboard would not be overly difficult.

However I have not seen any commercial devices which would be useful enough to make it worth the effort. (other than the gamepads) I have a personal plan to try build a dedicated gamepad using an esp32 and a rotary encoder, but it is held up in the Christmas postal deliveries. That will require a new gamepad configuration, which I can make reasonably generic.

Happy to rethink if I can be shown something commercial that would be usable.

from enginedriver.

rbthomp avatar rbthomp commented on June 1, 2024

I was going to use this. I was also playing with creating my own controller using Adafruit ItsyBitsy M0. I've already done some testing and using the Arduino Keyboard library which worked just fine when mapped existing keyevents as one of the listed gamepads.

I'm also got some inspiration from the following for ideas.
Trinkey
qtpy-knob

The Arduino really aren't a problem as you can control the key's it presses. It's the manufactured controllers which create troubles.

from enginedriver.

flash62au avatar flash62au commented on June 1, 2024

ok. the 'Mini USB Media Speaker Volume Controller' is kind-of interesting.
Supporting it in a similar way to gamepad controllers 'should' be easy enough (just a matter of figuring how to deal with the source being USB), but something special may be needed for the volume controller. Currently the volume speed control is treated separately to gamepad speed control, and in this case they will need to be linked. (depends how it actually does the volume changes.)

Coming up with a screen to allow customisable configuration of the buttons will not be too difficult, but it may be overkill unless there are likely to be other devices.
It is not on my radar, so I am not overly interested in doing it. But I am happy to assist if you want to take it on.

Having a 'standard' device type/support for Arduino based devices would make sense, and I was expecting to have to create something like that (if in can get the esp32 to do what I want). Even if I don't get mine going I am happy to assist to get yours going.

The USB volume controller one would be much easier to do if you reuse the existing gamepad functionality. (not 'universally' customisable)

from enginedriver.

flash62au avatar flash62au commented on June 1, 2024

@rbthomp
I did a fairly simple test of plugging in a USB keyboard into my phone.
ED doesn't actually distinguish between Bluetooth devices and USB devices, so if you can tell me the up and down key codes generated by the buttons on the device I can set something up for you. (You can use the gamepad test screen to get the codes.)

Peter

from enginedriver.

wgehner avatar wgehner commented on June 1, 2024

What would be really cool for my android phone is to regulate speed of the (default) throttle with the volume buttons. Here's a how-to I found:

https://stackoverflow.com/questions/2874743/android-volume-buttons-used-in-my-application

from enginedriver.

flash62au avatar flash62au commented on June 1, 2024

You can already control the throttles with the volume buttons. Also with headphone volume buttons, and also USB volume dials.

from enginedriver.

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.