Comments (6)
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.
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.
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.
@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.
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.
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)
- Feature Request: New throttle layout for those that use braking
- Request ability to set long press time to swap direction buttons HOT 3
- Changing speed steps in JMRI crashes ED on MCII HOT 12
- Flash feature not working on Android 8.1 HOT 5
- A Samsung Galaxy Tablet not funktion whit EngieDriver v2.19-test2 HOT 7
- ESU MCII knob does not react to external speed changes HOT 1
- Increase targetSdkVersion to 26 HOT 4
- Add support for importing and then graphical button icons from DecoderPro Roster instead of text on buttons HOT 3
- Enhancement: Add support for graphical buttons (instead of text) using icons stored in decoderpro roster HOT 1
- Add support for use of decoder pro roster icons instead of text for buttons. HOT 1
- Add support for using decoderpro roster icons instead of text in throttle buttons HOT 1
- Logo design HOT 1
- Untranslated strings v2.23.81 HOT 2
- Licensing prompt when using on closed network HOT 4
- Feature Request: Make preferred network used for connection requests configurable HOT 11
- Feature request: setting to enabled/disable sound and vibrate on disconnect HOT 8
- Feature request: new connection profile for Roco / Fleischmann Multimaus HOT 2
- Additional Tablet Support
- Feature Request: "Radio" communications and/or Text Train Orders HOT 3
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 enginedriver.