mac-event-monitor
A Library to Monitor User Interactions
Installation
$ gem install mac-event-monitor
Usage
require 'mac-event-monitor'
monitor = Mac::EventMonitor::Monitor.new
monitor.add_listener(:mouse_down) do |event|
puts [event.location.x, event.location.y].join(',')
end
monitor.run
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request