-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature request: Export/Import Pads as JSON #7
Comments
Exporting and importing control pads as JSON is definitely a handy feature, but I’ve got a slightly different idea. What if the app could generate a QR code (JSON string) for the control pad? Users could create their control pad and then share it as a QR code image. Other DroidPad apps could scan the QR code and load the control pad. The server could also show the QR code on startup to make sharing easy. |
A QR code is indeed a very good idea! Since the JSON would already be created to make the QR code, can we have both QR and JSON files? It would aid development and make backup easier, removing the QR middle man. |
Sure, but having the server send JSON to the app doesn’t seem feasible since the app isn’t set up to expect incoming data. This would require extra setup for things like a UDP server, MQTT broker (or app subscribing to a topic) and with BLE’s small MTU, it can’t handle large strings. So, using QR scanning or sharing an image seems like a better option since it avoids dealing with any connection protocols. |
QR code feature now available in the latest version (v2.0.0) |
Feature request
This FR has 2 important parts.
Export and Import
Being able to export a layout as a plain JSON file, and import it. It would be very useful specially with more complex pads, that have been extensively customized, with colors, labels, icons etc.
Request a layout to the Server
Since all protocols are bi-directional, it would be convenient if you could "ask" the server for default layout (for portrait/landscape).
Example
For example, the server may know that it only support a
joystick with id 'handle'
and abutton with id 'shoot' and mode 'click'
, so when asked, it could send a very barebones layout with only these 2 configured controls.DroidPad sends to the server:
The server sends back:
The fields with
null
can be setup as default by the app. Processing this layout, you have a pad with all the necessary/possible elements on the screen, and you can customize as you want. Of course, the server could send a customized pad for you as well, with the correct positioning, labels and colors.The text was updated successfully, but these errors were encountered: