I'm trying to use the (awesome) Deck.js slideware using the little white remote control on a MacBook.
You can advance the slide using the arrow keys, or you can override this behaviour to specify your own keys to advance the slides.
$.deck('.slide', {
keys: {
next: // numeric keycode for your remote's next button,
previous: // numeric keycode for previous button
}
});
How can I determine the keydown code which the Mac remote is se开发者_如何学Cnding for the next/previous buttons (and is it even sending one)?
I tried testing the remote at http://api.jquery.com/keydown but it doesn't seem to have any effect.
thanks
The Apple Remote doesn't produce any keycode values which you can detect.
You need to use an application like Remote Buddy or Sofa Control to map the buttons on the remote to keypresses.
精彩评论