Last active
December 18, 2015 15:58
-
-
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 file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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