Repository navigation
Python input events and sketch folder asset root. - #272
Open
tychedelia wants to merge 1 commit into
Open
tychedelia wants to merge 1 commit into
tychedelia wants to merge 1 commit into
Conversation
|
Visual regression: 1 changed of 43 cases
If these changes are intentional, add the baseline |
This branch has not been deployed
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.
Bunch of Python input cleanup to get closer to how Processing/py5 do it, plus an asset root change that kept biting
me while porting examples.
def mouse_pressed(e)ordef key_pressed(e). the no-arg versions stillwork, we just check the signature
MouseEventhasx,y,button,wheelandKeyEventhaskey,key_codemouse_clicked,key_typedandwindow_resizedmouse_wheelglobal since it clashed with the callback of the same name, usee.wheelinsteadwindow_x/window_yare just normal globals now instead of the special-cased lookupprocessing_inputso there's onecopy
Also the asset root is now the sketch folder itself instead of
<sketch>/assets, soload_image("data/pic.png")just works like it does in Processing.