Skip to content

Instantly share code, notes, and snippets.

@leostratus
Last active December 18, 2015 15:58
Show Gist options
  • Save leostratus/5807770 to your computer and use it in GitHub Desktop.
Save leostratus/5807770 to your computer and use it in GitHub Desktop.
Copy-paste-able code for my Kensington slide clicker so that it works with my HTML/CSS slide deck. Note that if you have a Kensington remote with multiple modes that you'll want to be in 'emulate mouse' mode.
// This shit because my Kensington presentation clicker wasn't programmable
// Seriously I should have bought a Logitech
document.body.onclick = function(e) {
bespoke.prev(); // Change this to whatever function selects the previous slide for view for your deck
return false;
}
document.oncontextmenu = function (e) {
bespoke.next(); // Change this to whatever function selects the next slide for view for your deck
return false;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment