fix: gateway compat
This commit is contained in:
parent
f2785c52b8
commit
671ea3fd6e
8
index.js
8
index.js
|
@ -318,13 +318,13 @@ class IRUSBDevice extends Device {
|
||||||
* @param {Action} action
|
* @param {Action} action
|
||||||
*/
|
*/
|
||||||
async performAction(action) {
|
async performAction(action) {
|
||||||
switch(action.getName()) {
|
switch(action.name) {
|
||||||
case 'launch':
|
case 'launch':
|
||||||
return this.sendCommand(`LAUNCH ${action.getInput()}`);
|
return this.sendCommand(`LAUNCH ${action.input}`);
|
||||||
case 'remoteShort':
|
case 'remoteShort':
|
||||||
return this.sendKey(action.getInput(), false);
|
return this.sendKey(action.input, false);
|
||||||
case 'remoteLong':
|
case 'remoteLong':
|
||||||
return this.sendKey(action.getInput(), true);
|
return this.sendKey(action.input, true);
|
||||||
case 'cancelKeys':
|
case 'cancelKeys':
|
||||||
return this.sendCommand('HIDCODE0000000');
|
return this.sendCommand('HIDCODE0000000');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue