-
Notifications
You must be signed in to change notification settings - Fork 26
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
Android app improvements, multiple layouts problem #33
Comments
I just saw this right now, and I'm going to try answering in order. Small improvementsThe Android framework is just intuitive enough for me to be able to delete things. I think I managed to cover your third point (stop sending floats before every message). I'm not very knowledgable in networking and even less in The rest of your improvements would be very useful, and I'd appreciate it if either you or @rmst could program them in. I'd also like to remind you about
Multiple layouts: navigationThis probably could be done on JavaScript alone (by adding a button to refresh the page) but I like your method better. The screen is cluttered enough as it is. Multiple layouts: managementI was thinking about that, too. Options 3 is a very difficult method, and little better than the users editing
Every default layout could have a special small button on a corner. This wouldn't actually be a gamepad button: when a user touches it, it would bring up a window like this: OPTIONS
To avoid accidental presses, this window would only appear when holding the button for longer than two seconds. We could even think of eventually translating these to any language, or setting up cookies to remember the users' preferred config, but for now I wouldn't worry about that. Users can for the moment set everything up every time they load the page; there aren't that many options. EDIT: This button should also appear in every CSS file (we could call it |
I uploaded a “pre-release” to my fork, just in case @pzmarzly hasn't got Gradle set up. |
In Android small improvements right now would be:
--iface
option could be removed or modified (despite its name Yoke always binds on 0.0.0.0, the option sets which PC interface is accessible from app's point of view)TODO:
commentupdate_vals
is called)Multiple layouts: navigation
Right now hitting Back makes the app quit. It could instead bring user back to layout selection screen. However, currently app makes it impossible to achieve on HTML/JS side alone.
Navigating with
<a href="...">
causes browser selector to pop up:Meanwhile I made
history.pushState
-based system that in browser, but in app the back button event gets intercepted by app (HTML doesn't get any event)Multiple layouts: management
Right now some settings are adjustable in
base.js
. Also, since layout is hardcoded in Python code, and some programs ignore SDL gamepad string, user may want to customize Python code. This is fine (I adjusted README to show this better), but a bit troublesome.User may want
VIBRATE_ON_PAD_BOUNDARY
to be on on gamepad layout, but not on racing layout. If they ever create custom layouts, there would be even more problems. There are few solutions I can think of:[{type:'joystick',id:1,locking:true,vibrate_on_pad_boundary:false,x:100,y:300,background:'file.svg'},{type:'joystick',id:2, ...}]
. Default options of course wouldn't need to be specified. It wouldn't have to be JSON, could be e.g. TOML. We would need either a good editor, or at least a reference (list of all widgets with their default options).pip3 install -e .
(symlinks instead of copying files). Versioned config files could be a plus, too. The downside is that Git is not newbie-friendly. We could make some helpers, e.g.In the third scenario,
Multiple layouts: navigation
part could turn out to be unnecessary.@medape @rmst : your opinions are welcome
The text was updated successfully, but these errors were encountered: