Skip to content

Commit

Permalink
Convenience methods clicked_air? and clicked_block? when you don't ca…
Browse files Browse the repository at this point in the history
…re if it was a left of right click
  • Loading branch information
enebo committed Nov 17, 2011
1 parent 1f50f1f commit dd2f97c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/purugin/action.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,14 @@ def right_click_air?
def physical?
getAction == A::PHYSICAL
end

def clicked_air?
left_click_air? || right_click_air?
end

def clicked_block?
left_click_block? || right_click_block?
end
end
end

0 comments on commit dd2f97c

Please sign in to comment.