Skip to content

Commit 12b3b62

Browse files
authored
Also log on button down during test (#11)
1 parent b0c4b4b commit 12b3b62

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/test.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ shuttle.on('buttonup', (button, id) => {
4141
console.log('Shuttle button up', button, id)
4242
})
4343

44+
shuttle.on('buttondown', (button, id) => {
45+
console.log('Shuttle button down', button, id)
46+
})
47+
4448
shuttle.start()
4549

4650
if (shuttle.getDeviceList().length === 0) {

0 commit comments

Comments
 (0)