examples/logitech-f310/logitech-f310.js
Function work
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
work: function(my) {
["up", "down", "left", "right", "start", "select", "home",
"ls", "rs", "lb", "rb", "a", "b", "y", "x"].forEach(function(button) {
my.controller.on(button + ":press", function() {
console.log("Button " + button + " pressed.");