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

Several names don't have snake case equivalents #44

Open
OpenSauce04 opened this issue Nov 7, 2023 · 0 comments
Open

Several names don't have snake case equivalents #44

OpenSauce04 opened this issue Nov 7, 2023 · 0 comments

Comments

@OpenSauce04
Copy link

OpenSauce04 commented Nov 7, 2023

All keywords, function names, etc from Processing that exist in Propane have had their names converted to follow Ruby's snake_case convention. (e.g. mousePressed --> mouse_pressed)

I have found a few exceptions to this rule

Expected Behavior

All names should have snake_case equivalents

Actual Behavior

There are several names that don't have snake_case equivalents:


mouse_wheel

mouse_wheel is not triggered when the mouse wheel is used, and mouseWheel must be used instead

Doesn't work:

def mouse_wheel(event)
  scroll_count = event.get_count
  puts scroll_count
end

Works:

def mouseWheel(event)
  scroll_count = event.get_count
  puts scroll_count
end

display_width, display_height, pixel_width and pixel_height

Doesn't work:

puts display_width
puts display_height
puts pixel_width
puts pixel_height

Works:

puts displayWidth
puts displayHeight
puts pixelWidth
puts pixelHeight
@OpenSauce04 OpenSauce04 changed the title The mouseWheel event has no mouse_wheel equivalent Several names don't have snake case equivalents Nov 7, 2023
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

No branches or pull requests

1 participant