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

getkey and explicit new xy #56

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jkrauska
Copy link
Contributor

@jkrauska jkrauska commented Dec 1, 2019

  • Uses getkey instead of getchar to allow for arrow keys
  • sends new x and y coords to xy function to use steps (using self was calculating length 0)

@jkrauska jkrauska changed the title getkey and explict new xy getkey and explicit new xy Dec 2, 2019
@jkrauska
Copy link
Contributor Author

jkrauska commented Dec 9, 2019

@evildmp Any interest in this?

@evildmp
Copy link
Owner

evildmp commented Dec 14, 2019

I like the idea, but is there a way to prevent this from happening when a key is held down?

>>> bg.drive_xy()
X:-10.0, Y:7.0
PW1:1999, PW2:1393
^[[D^[[BX:-11.0, Y:7.0
^[[CPW1:1986, PW2:1293
^[[C^[[C^[[C^[[CX:-10.0, Y:7.0

It happens already with the a/s/k/l controls, but it's more obtrusive as above.

Also, the drive methods should be documented in /docs/reference/brachiograph.rst.

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