Skip to content

robhurring/apple-remote

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About

This library is a simple DSL for your apple remote. It uses the AppleRemote.framework for Objective-C (by Martin Kahr) and RubyCocoa to hook it all up. It seems pointless, but was fun to write.

Author

Rob Hurring (rob@zerobased.com)

Copyright

Copyright © 2002 Zerobased, LLC

Special Thanks

Installation

Once you’re up and running with RubyCocoa, compiling the framework is pretty trivial. Theres instructions in the lib/framework/src/README file

Examples

play do
  puts "I'm playing... (Playing? #{playing?})"
end

pause do
  puts "I'm paused... (Playing? #{playing?})"
end

menu do
  if playing?
    puts "Do something with the menu while we're in 'play' state"
  else
    puts "Do something with the menu while we're not in the 'play' state"
  end
end

up(:up) do
  puts "The volume-up key is down."
end

up(:down) do
  puts "The volume-up key is released."
end

# See other files for more examples... As for cool stuff to do? I leave that to you.

About

Ruby DSL for the Apple Remote Obj-C library of the same name

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published