diff options
author | Devine Lu Linvega <[email protected]> | 2018-12-15 11:30:28 +1200 |
---|---|---|
committer | Devine Lu Linvega <[email protected]> | 2018-12-15 11:30:28 +1200 |
commit | 933b5fe9e9d6e21d84b8c1cb14e5ab9879d23989 (patch) | |
tree | ee2af7010bd1879243c297411e616aedbb725858 | |
parent | 896230a4735fda99ebe6539381a53eaaa31a81c2 (diff) | |
download | Orca-933b5fe9e9d6e21d84b8c1cb14e5ab9879d23989.tar.gz Orca-933b5fe9e9d6e21d84b8c1cb14e5ab9879d23989.zip |
Removed artifacts
-rw-r--r-- | desktop/core/library/_keys.js | 31 | ||||
-rw-r--r-- | desktop/sources/scripts/io.js | 14 |
2 files changed, 2 insertions, 43 deletions
diff --git a/desktop/core/library/_keys.js b/desktop/core/library/_keys.js deleted file mode 100644 index f8bb96f..0000000 --- a/desktop/core/library/_keys.js +++ /dev/null @@ -1,31 +0,0 @@ -'use strict' - -const Operator = require('../operator') - -function OperatorKeys (orca, x, y, passive) { - Operator.call(this, orca, x, y, '!', true) - - this.name = 'keys' - this.info = 'Bangs on keyboard input.' - - this.ports.input.key = { x: 1, y: 0 } - this.ports.output = { x: 0, y: 1 } - - this.run = function () { - const key = this.listen(this.ports.input.key) - - if (key === '.') { return } - - const index = orca.terminal.io.stack.keys.indexOf(key) - - if (index > -1) { - this.draw = false - orca.terminal.io.stack.keys.splice(index, 1) - this.output('*') - } else { - this.output('.') - } - } -} - -module.exports = OperatorKeys diff --git a/desktop/sources/scripts/io.js b/desktop/sources/scripts/io.js index ce884d9..79017e3 100644 --- a/desktop/sources/scripts/io.js +++ b/desktop/sources/scripts/io.js @@ -5,7 +5,7 @@ function IO (terminal) { this.midi = { device: 0 } this.outputs = [] - this.stack = { keys: [] } + this.stack = { } this.start = function () { this.clear() @@ -28,16 +28,6 @@ function IO (terminal) { } } - // Keyboard - - this.sendKey = function (key) { - this.stack.keys = [key] - } - - this.playKey = function (key) { - // Idle. Read by the ! operator. - } - // UDP this.sendUdp = function (msg) { @@ -131,7 +121,7 @@ function IO (terminal) { } this.length = function () { - return this.stack.udp.length + this.stack.midi.length + this.stack.keys.length + return this.stack.udp.length + this.stack.midi.length } this.toString = function () { |