Added support for joystick inputs for controlling robots#27
Open
featherfeet wants to merge 9 commits intoremotv:masterfrom
Open
Added support for joystick inputs for controlling robots#27featherfeet wants to merge 9 commits intoremotv:masterfrom
featherfeet wants to merge 9 commits intoremotv:masterfrom
Conversation
…esktop-only). Renders using an HTML5 canvas and sends commands of the form `j_-57_62` where j is the command specified in the robot's JSON and the numbers are joystick coordinates between -100 and 100.
…d it to use an SVG instead of a Canvas for rendering, and added touch events so that it works on mobile.
Author
|
Now refactored to use an SVG for better HiDPI display support. Joystick input is now a separate React Component. Also works on mobile now using touch events. |
…he joystick area that fade with time. Also changed joystick commands from X/Y to angle/magnitude.
Author
|
Joystick input now shows a trail of fading dots to show you where other users are interacting with the joystick (separate colors are used for each of the other users). Joystick commands are now angle/magnitude, not X/Y. |
… joystick area to be more slidey and less sticky.
…messages; instead, the usernames of users operating the joysticks are shown on their trails of dots on the joystick area.
…e. Handles HiDPI correctly.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Added support for joystick inputs for controlling robots (currently desktop-only). Renders using an HTML5 canvas and sends commands of the form
j_-57_62where j is the command specified in the robot's JSON and the numbers are X/Y joystick coordinates between -100 and 100.