1.0.0 • Published 1 year ago

@panz3r/reveal.js-joycontroller v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

RevealJoyController

Custom plugin for Reveal.js to control presentations using Nintendo Switch Joy-Cons

Key bindings

By default, the plugin is configured with the following key bindings:

LeftRightAction
RIGHTARight
DOWNBDown
UPXUp
LEFTYLeft
SRSRNext slide
SLSLPrevious slide
-+Toggle pause

Configuration

You can configure the plugin with the following options:

// ...
plugins: [ /* ... */ ],
joycon: {
    type: 'right',   // or 'left', depending on the Joy Con you want to use, default is 'right'
    cooldown: 200,   // the time in ms between two actions, default is 300
    pointerSpeed: 10 // the speed of the pointer, default is 20
}

Credits

Inspired by Firnael/reveal.js-joycon-plugin

License

MIT

1.0.0

1 year ago