Skip to content
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

Yoke now won't send floats, or extra information. #35

Closed
wants to merge 7 commits into from

Conversation

medape
Copy link
Contributor

@medape medape commented Jul 19, 2019

With this, mission number 3 in issue #33 is completed. The Yoke app receives a string with integers from 0 to 255, converts it to a byte string, and Python doesn't process that futher unless in Windows.

I bundled my compiled APK at devel/apk-debug.apk. This matches the code I modified for this PR in yoke-android.

I've also done very minor changes like adding new SVGs and creating a convenience function for the JavaScript. Those are all explained in my commits.

medape added 7 commits July 19, 2019 01:17
Control.prototype.getBoundingClientRect() calculates every coordinate for every control now. This deletes repeated lines of code and makes it clearer.
state() maps float:[0, 1] to int:[0, 255] right before joining every state into a string.
Placeholders for select, start and mode buttons.
float:[0.000001, 0.999999] is, in practice, equal to float:[0.0, 1.0], but allows me to use floor() or ceil() instead of round(). This makes every interval in float that maps to a different integer the same size.
@pzmarzly
Copy link
Collaborator

Closed in favor of #36.

@pzmarzly pzmarzly closed this Jul 20, 2019
pzmarzly added a commit that referenced this pull request Jul 26, 2019
We can freely choose layouts now [builds upon PR #35]
@medape medape deleted the shortermsg branch July 27, 2019 11:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants